<?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 How to use the same authentication from SAS Server in PROC HTTP webauth parameter in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-use-the-same-authentication-from-SAS-Server-in-PROC-HTTP/m-p/754582#M39130</link>
    <description>&lt;P&gt;First let me explain what I'm trying to do.&lt;/P&gt;&lt;P&gt;I want to download some reports from a server directly from a HTTP get proccess. I already dealt with it using the following code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="sas"&gt;PROC HTTP
    URL='...'
    METHOD='get'
    Out=OutFIle
    WebUserName='' /* &amp;lt;--- Avoid */
    WebPassword='' /* &amp;lt;--- Avoid */
    ;
Run;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem are the web authentication parameters. I'd like to set a schedule run at the first day of each month, but the destination server requires constant password changes and they're the same used to access SAS servers.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there some way to pass the same SAS password in proc HTTP without writting it after each change?&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 16 Jul 2021 13:16:11 GMT</pubDate>
    <dc:creator>OliveiraMiguelZ</dc:creator>
    <dc:date>2021-07-16T13:16:11Z</dc:date>
    <item>
      <title>How to use the same authentication from SAS Server in PROC HTTP webauth parameter</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-use-the-same-authentication-from-SAS-Server-in-PROC-HTTP/m-p/754582#M39130</link>
      <description>&lt;P&gt;First let me explain what I'm trying to do.&lt;/P&gt;&lt;P&gt;I want to download some reports from a server directly from a HTTP get proccess. I already dealt with it using the following code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="sas"&gt;PROC HTTP
    URL='...'
    METHOD='get'
    Out=OutFIle
    WebUserName='' /* &amp;lt;--- Avoid */
    WebPassword='' /* &amp;lt;--- Avoid */
    ;
Run;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem are the web authentication parameters. I'd like to set a schedule run at the first day of each month, but the destination server requires constant password changes and they're the same used to access SAS servers.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there some way to pass the same SAS password in proc HTTP without writting it after each change?&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jul 2021 13:16:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-use-the-same-authentication-from-SAS-Server-in-PROC-HTTP/m-p/754582#M39130</guid>
      <dc:creator>OliveiraMiguelZ</dc:creator>
      <dc:date>2021-07-16T13:16:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to use the same authentication from SAS Server in PROC HTTP webauth parameter</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-use-the-same-authentication-from-SAS-Server-in-PROC-HTTP/m-p/754699#M39133</link>
      <description>&lt;P&gt;For the code that you have marked as "avoid," do you mean that you'd like to NOT code a password?&amp;nbsp; I don't blame you a bit.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, in other words, you do NOT want to do this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC HTTP
    URL='...'
    METHOD='get'
    Out=OutFIle
    WebUserName='Omiguelz' /* &amp;lt;--- Avoid */
    WebPassword='Secret_Password' /* &amp;lt;--- Avoid */
    ;
Run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Where there are literal values in the code.&amp;nbsp; Am I understanding that correctly?&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One way to avoid that is to use macro variables.&amp;nbsp; Something like this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC HTTP
    URL='...'
    METHOD='get'
    Out=OutFIle
    WebUserName="&amp;amp;User_ID"
    WebPassword="&amp;amp;Password"
    ;
Run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The values of the macro variables could be set dynamically, for example in a Data step that knows which password to use which days.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In our system, we encrypt the passwords so that they are not plain text.&amp;nbsp; Instead they look like:&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;{SAS005}9956AC09F4F02674FEAE7CFE7FA91DF070E7DC1D64AA589D&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jim&lt;/P&gt;</description>
      <pubDate>Sat, 17 Jul 2021 02:00:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-use-the-same-authentication-from-SAS-Server-in-PROC-HTTP/m-p/754699#M39133</guid>
      <dc:creator>jimbarbour</dc:creator>
      <dc:date>2021-07-17T02:00:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to use the same authentication from SAS Server in PROC HTTP webauth parameter</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-use-the-same-authentication-from-SAS-Server-in-PROC-HTTP/m-p/754970#M39142</link>
      <description>Thanks, Jimbarbour!&lt;BR /&gt;&lt;BR /&gt;I think I haven't expressed myself as I wanted to.&lt;BR /&gt;I was looking for a way to use in WebUserName and WebPassword parameters the same values as my SAS Server credentials.&lt;BR /&gt;&lt;BR /&gt;After post this I started to rethink my program and found another way to do it.&lt;BR /&gt;&lt;BR /&gt;And, believing you're as curious as me, let me explain how I dealt with it. I used proc SQL "execute" statement with a connection directly to the database, so it's basically the same as asking the server a HTTP without passing the credentials (in my case, that there wasn't a complex proccess behind the report, sure)&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 19 Jul 2021 12:32:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-use-the-same-authentication-from-SAS-Server-in-PROC-HTTP/m-p/754970#M39142</guid>
      <dc:creator>OliveiraMiguelZ</dc:creator>
      <dc:date>2021-07-19T12:32:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to use the same authentication from SAS Server in PROC HTTP webauth parameter</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-use-the-same-authentication-from-SAS-Server-in-PROC-HTTP/m-p/756026#M39173</link>
      <description>&lt;P&gt;As long as your server is using NTLM or Kerberos as the authentication mechanism and your current user identity has permissions / access, you don't need passwords.&lt;/P&gt;
&lt;P&gt;Needless to say that the user and the server you are connecting to are within the same domain i.e., you are within the company intranet.&lt;BR /&gt;Try proc http without username and password it should work.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jul 2021 19:19:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-use-the-same-authentication-from-SAS-Server-in-PROC-HTTP/m-p/756026#M39173</guid>
      <dc:creator>Sajid01</dc:creator>
      <dc:date>2021-07-22T19:19:51Z</dc:date>
    </item>
  </channel>
</rss>

