<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Proc HTTP - auth token in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Proc-HTTP-auth-token/m-p/656370#M196794</link>
    <description>Just call it as parameter?&lt;BR /&gt;%let user=SVCTESTCRMAUT999&lt;BR /&gt;%let password=999999999</description>
    <pubDate>Wed, 10 Jun 2020 11:58:42 GMT</pubDate>
    <dc:creator>AnandVyas</dc:creator>
    <dc:date>2020-06-10T11:58:42Z</dc:date>
    <item>
      <title>Proc HTTP - auth token</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-HTTP-auth-token/m-p/656345#M196788</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/321733"&gt;@H-elmu-t&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;hello ,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I had a question a HTTP&amp;nbsp; post you posted&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/Developers/Authentication-OAuth-2nd-PROC-HTTP-fails/m-p/640008#M733" target="_blank"&gt;https://communities.sas.com/t5/Developers/Authentication-OAuth-2nd-PROC-HTTP-fails/m-p/640008#M733&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;how do I pass my username and password&amp;nbsp; in the below. Please find a sample username and password posted by me.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;filename resp temp;

proc http url="https://mysasserver.net:443/SASLogon/oauth/token"
	method='post'
	in="grant_type=password%nrstr(&amp;amp;username=)&amp;amp;USERNAME.%nrstr(&amp;amp;password=)&amp;amp;PASSWORD."
	username="&amp;amp;CLIENT_ID."
	password="&amp;amp;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;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;user='SVCTESTCRMAUT999'&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;password=999999999&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;url =&amp;nbsp; ' https:// xxxxxxxxxxxxxxxx'&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jun 2020 10:30:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-HTTP-auth-token/m-p/656345#M196788</guid>
      <dc:creator>dennis_oz</dc:creator>
      <dc:date>2020-06-10T10:30:29Z</dc:date>
    </item>
    <item>
      <title>Re: Proc HTTP - auth token</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-HTTP-auth-token/m-p/656370#M196794</link>
      <description>Just call it as parameter?&lt;BR /&gt;%let user=SVCTESTCRMAUT999&lt;BR /&gt;%let password=999999999</description>
      <pubDate>Wed, 10 Jun 2020 11:58:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-HTTP-auth-token/m-p/656370#M196794</guid>
      <dc:creator>AnandVyas</dc:creator>
      <dc:date>2020-06-10T11:58:42Z</dc:date>
    </item>
  </channel>
</rss>

