BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
Jovian
Calcite | Level 5

Hi, 

 

I would like to know if there is way to  passed a hashed/encrypted password while logging in via sas-viya cli 
for example -->
Instead of passing the actual plain text password 
eg - sas-viya auth login -u demo -p demopassword


How can I pass an encrypted password generated by openssl or any other process. 
eg - sas-viya auth login -u demo -p $6$4WukfXXuAf4LvN1d$vpEcrPB1SNjaENWbVMI2lY8T5b1V0FnyDBMVez97d4rnvHyw/XYlyKXax07XeMirtwc/T/j2PLd2yKmccPzXo/


Is this possible?

1 ACCEPTED SOLUTION

Accepted Solutions
smopati
SAS Employee

@Jovian , There isn't a way to encode the password that is passed to the CLI. You can use loginCode option instead.

Command: ./sas-viya auth loginCode

This loginCode option gives a URL that you can access from browser, sign in with an ID that has admin privileges and then get the authorization code. You can then use the authorization code for the CLI.

View solution in original post

1 REPLY 1
smopati
SAS Employee

@Jovian , There isn't a way to encode the password that is passed to the CLI. You can use loginCode option instead.

Command: ./sas-viya auth loginCode

This loginCode option gives a URL that you can access from browser, sign in with an ID that has admin privileges and then get the authorization code. You can then use the authorization code for the CLI.

suga badge.PNGThe SAS Users Group for Administrators (SUGA) is open to all SAS administrators and architects who install, update, manage or maintain a SAS deployment. 

Join SUGA 

Get Started with SAS Information Catalog in SAS Viya

SAS technical trainer Erin Winters shows you how to explore assets, create new data discovery agents, schedule data discovery agents, and much more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 305 views
  • 2 likes
  • 2 in conversation