<?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 Deploy Batch API downloaded from Model Studio without clear text password in Administration and Deployment</title>
    <link>https://communities.sas.com/t5/Administration-and-Deployment/Deploy-Batch-API-downloaded-from-Model-Studio-without-clear-text/m-p/846900#M25592</link>
    <description>&lt;P&gt;Hello There.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I downloaded a Batch API SAS Code from ModelStudio and it is running fine, but I would like to know if there is a way to call the macro without having the password in clear text as argument.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The following lines illustrates the arguments needed to call the Batch API macro:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;/* Call the macro */

%let protocol = https;
%let host = sashost;
%let port = 443;
%let username = awesomeuser;
%let password = supersecretpassword;
%let projectId = ohhi-how-are-ya-666;

%vf_new_iteration(&amp;amp;protocol, &amp;amp;host, &amp;amp;port, &amp;amp;username, &amp;amp;password, &amp;amp;projectId);&lt;/PRE&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
    <pubDate>Tue, 29 Nov 2022 19:23:10 GMT</pubDate>
    <dc:creator>alisio_meneses</dc:creator>
    <dc:date>2022-11-29T19:23:10Z</dc:date>
    <item>
      <title>Deploy Batch API downloaded from Model Studio without clear text password</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Deploy-Batch-API-downloaded-from-Model-Studio-without-clear-text/m-p/846900#M25592</link>
      <description>&lt;P&gt;Hello There.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I downloaded a Batch API SAS Code from ModelStudio and it is running fine, but I would like to know if there is a way to call the macro without having the password in clear text as argument.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The following lines illustrates the arguments needed to call the Batch API macro:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;/* Call the macro */

%let protocol = https;
%let host = sashost;
%let port = 443;
%let username = awesomeuser;
%let password = supersecretpassword;
%let projectId = ohhi-how-are-ya-666;

%vf_new_iteration(&amp;amp;protocol, &amp;amp;host, &amp;amp;port, &amp;amp;username, &amp;amp;password, &amp;amp;projectId);&lt;/PRE&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2022 19:23:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Deploy-Batch-API-downloaded-from-Model-Studio-without-clear-text/m-p/846900#M25592</guid>
      <dc:creator>alisio_meneses</dc:creator>
      <dc:date>2022-11-29T19:23:10Z</dc:date>
    </item>
    <item>
      <title>Re: Deploy Batch API downloaded from Model Studio without clear text password</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Deploy-Batch-API-downloaded-from-Model-Studio-without-clear-text/m-p/846908#M25593</link>
      <description>&lt;P&gt;You can encode the password using PWENCODE:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc pwencode in = "supersecretpassword";
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Then you use the encoded version in your program:&amp;nbsp;{SAS002}709545100D40657D4507094941ACEF7C4652D9232A8E0E4001E3D23059C7D7C8&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However that doesn't prevent someone else making use of that version for their own purposes if they find it in your program.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2022 20:06:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Deploy-Batch-API-downloaded-from-Model-Studio-without-clear-text/m-p/846908#M25593</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2022-11-29T20:06:28Z</dc:date>
    </item>
    <item>
      <title>Re: Deploy Batch API downloaded from Model Studio without clear text password</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Deploy-Batch-API-downloaded-from-Model-Studio-without-clear-text/m-p/847052#M25596</link>
      <description>&lt;P&gt;Hi &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13976"&gt;@SASKiwi&lt;/a&gt;, thank you for replying.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried using the encoded password but it didn't work. I get authorization error (log attached) if using the encoded password, although it still works fine using the unencoded password;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;/* Encoding password */
proc pwencode in = "supersecretpassword";
run;
/* encoded password: {SAS002}709545100D40657D4507094941ACEF7C4652D9232A8E0E4001E3D23059C7D7C8 */ 

/* Call the macro */

%let protocol = https;
%let host = sashost;
%let port = 443;
%let username = awesomeuser;
%let password = {SAS002}709545100D40657D4507094941ACEF7C4652D9232A8E0E4001E3D23059C7D7C8;
%let projectId = ohhi-how-are-ya-666;

%vf_new_iteration(&amp;amp;protocol, &amp;amp;host, &amp;amp;port, &amp;amp;username, &amp;amp;password, &amp;amp;projectId);&lt;/PRE&gt;&lt;P&gt;Could it be that the literal encoded password is being used?&lt;/P&gt;&lt;P&gt;Is it necessary to 'tell' the funcions/step/proc that an encoded password is in use?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2022 14:35:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Deploy-Batch-API-downloaded-from-Model-Studio-without-clear-text/m-p/847052#M25596</guid>
      <dc:creator>alisio_meneses</dc:creator>
      <dc:date>2022-11-30T14:35:56Z</dc:date>
    </item>
    <item>
      <title>Re: Deploy Batch API downloaded from Model Studio without clear text password</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Deploy-Batch-API-downloaded-from-Model-Studio-without-clear-text/m-p/847143#M25599</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/396980"&gt;@alisio_meneses&lt;/a&gt;&amp;nbsp;In my experience SAS detects the encoding type based on the contents of the curly brackets. I've never tried this in PROC HTTP but it works fine for other password-required processes.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2022 20:31:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Deploy-Batch-API-downloaded-from-Model-Studio-without-clear-text/m-p/847143#M25599</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2022-11-30T20:31:05Z</dc:date>
    </item>
  </channel>
</rss>

