BookmarkSubscribeRSS Feed
ssp0490
Calcite | Level 5

Can we generate access token through SAS Viya Authentication API with password grant type and providing encrypted password? Is there an example/documentation with steps to do so? The password is encrypted using proc pwencode. 

 

1 REPLY 1
joeFurbee
Community Manager

Hi @ssp0490,

Please see my blog post: Authentication to SAS Viya: a couple of approaches. In the Get an access token using the password grant section, I outline how to generate an access token using the password grant type. 

 

If you prefer Python, you can reference one of one of the files in the rest-api-use-cases repo on sassoftware GitHub.


Join us for SAS Community Trivia

SASBowl LVI, LLMs and SAS Coding
Wednesday, November 19, 2025 at 10 am ET.

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

Discussion stats
  • 1 reply
  • 947 views
  • 1 like
  • 2 in conversation