BookmarkSubscribeRSS Feed
dennis_oz
Quartz | Level 8

@H-elmu-t 

 

hello , 

I had a question a HTTP  post you posted 

https://communities.sas.com/t5/Developers/Authentication-OAuth-2nd-PROC-HTTP-fails/m-p/640008#M733 

 

how do I pass my username and password  in the below. Please find a sample username and password posted by me.

 

filename resp temp;

proc http url="https://mysasserver.net:443/SASLogon/oauth/token"
	method='post'
	in="grant_type=password%nrstr(&username=)&USERNAME.%nrstr(&password=)&PASSWORD."
	username="&CLIENT_ID."
	password="&CLIENT_SECRET."
	out=resp
	auth_basic verbose;
	debug level=3;
run;

libname tokens json "%sysfunc(pathname(resp))";
%global ACCESS_TOKEN;

proc sql noprint;
    select access_token into:ACCESS_TOKEN, from tokens.root;
quit;

 

I have a 

   user='SVCTESTCRMAUT999'

   password=999999999

   url =  ' https:// xxxxxxxxxxxxxxxx' 

1 REPLY 1
AnandVyas
Ammonite | Level 13
Just call it as parameter?
%let user=SVCTESTCRMAUT999
%let password=999999999

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 1361 views
  • 0 likes
  • 2 in conversation