<?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: GenerateToken issue in SAS Viya in Administration and Deployment</title>
    <link>https://communities.sas.com/t5/Administration-and-Deployment/GenerateToken-issue-in-SAS-Viya/m-p/736377#M22027</link>
    <description>&lt;P&gt;Thanks for this,&lt;/P&gt;
&lt;P&gt;I sorted this.&lt;/P&gt;
&lt;P&gt;by doing&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;the server details&lt;/LI&gt;
&lt;LI&gt;consul token&lt;/LI&gt;
&lt;LI&gt;user id and passwords.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Created a client/secret pair on the server that will be used to generate the authorisation token for the API calls&lt;/P&gt;</description>
    <pubDate>Thu, 22 Apr 2021 11:51:32 GMT</pubDate>
    <dc:creator>sathya66</dc:creator>
    <dc:date>2021-04-22T11:51:32Z</dc:date>
    <item>
      <title>GenerateToken issue in SAS Viya</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/GenerateToken-issue-in-SAS-Viya/m-p/735935#M22023</link>
      <description>&lt;P&gt;Hi All,&lt;BR /&gt;trying to generate a token by using below code but it is timing out. any idea?&lt;BR /&gt;what is base URL? is it where we use URL to connect to SAS Viya?&lt;BR /&gt;sas.demo.com IP address is different than below Ips (10.11.11.123 or 10.11.11.122)&lt;BR /&gt;ERROR: Error connecting to 10.11.11.123.(The connection has timed out)&lt;BR /&gt;ERROR: Error connecting to 10.11.11.122.(The connection has timed out)&lt;BR /&gt;ERROR:Unable to establish connection to sas.demo.com.&lt;BR /&gt;ERROR:Unable to connect to Web server&lt;/P&gt;
&lt;P&gt;Happy to share more logs&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro GenerateToken(user = , pw = , baseURL = );
/* ======================================= 1: Generate token ======================================= */
%let _tokenURL=%nrbquote(&amp;amp;baseURL./SASLogon/oauth/token?grant_type=password%nrstr(&amp;amp;)username=&amp;amp;user%nrstr(&amp;amp;)password=&amp;amp;pw);
options noquotelenmax;

%mend;
%GenerateToken(user=test_user, pw=Welcome, baseURL=https://sas.demo.com);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 21 Apr 2021 12:29:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/GenerateToken-issue-in-SAS-Viya/m-p/735935#M22023</guid>
      <dc:creator>sathya66</dc:creator>
      <dc:date>2021-04-21T12:29:09Z</dc:date>
    </item>
    <item>
      <title>Re: GenerateToken issue in SAS Viya</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/GenerateToken-issue-in-SAS-Viya/m-p/735973#M22025</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/93352"&gt;@sathya66&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes, baseURL would need to match the value of your SAS server URL. In the sample code&amp;nbsp;baseURL=&lt;A href="https://sas.demo.com" target="_blank"&gt;https://sas.demo.com&lt;/A&gt; is where you would substitute your server value (you'd also need to use YOUR user and pw as well).&lt;/P&gt;</description>
      <pubDate>Wed, 21 Apr 2021 14:04:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/GenerateToken-issue-in-SAS-Viya/m-p/735973#M22025</guid>
      <dc:creator>joeFurbee</dc:creator>
      <dc:date>2021-04-21T14:04:30Z</dc:date>
    </item>
    <item>
      <title>Re: GenerateToken issue in SAS Viya</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/GenerateToken-issue-in-SAS-Viya/m-p/736377#M22027</link>
      <description>&lt;P&gt;Thanks for this,&lt;/P&gt;
&lt;P&gt;I sorted this.&lt;/P&gt;
&lt;P&gt;by doing&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;the server details&lt;/LI&gt;
&lt;LI&gt;consul token&lt;/LI&gt;
&lt;LI&gt;user id and passwords.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Created a client/secret pair on the server that will be used to generate the authorisation token for the API calls&lt;/P&gt;</description>
      <pubDate>Thu, 22 Apr 2021 11:51:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/GenerateToken-issue-in-SAS-Viya/m-p/736377#M22027</guid>
      <dc:creator>sathya66</dc:creator>
      <dc:date>2021-04-22T11:51:32Z</dc:date>
    </item>
  </channel>
</rss>

