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

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

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