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

AI Navigator GIF.gif


Navigate AI governance with SAS tools for compliance and ethical AI practices. Try SAS Ai Navigator for free for the first six months.

Check it out on Microsoft Marketplace →

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
  • 2002 views
  • 0 likes
  • 2 in conversation