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'
April 27 – 30 | Gaylord Texan | Grapevine, Texas
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!
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.
Ready to level-up your skills? Choose your own adventure.