<?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: sas-viya auth login in Administration and Deployment</title>
    <link>https://communities.sas.com/t5/Administration-and-Deployment/sas-viya-auth-login/m-p/859715#M26034</link>
    <description>&lt;P&gt;The -k/--insecure mean that the certificate validation step is skipped.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would suggest trying to ping the server (&lt;A href="http://sasserver.demo.sas.com" target="_blank"&gt;http://sasserver.demo.sas.com&lt;/A&gt;) from the command line and make sure that you get something in return.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Next try logging in using:&lt;/P&gt;
&lt;P&gt;sas-viya -k auth login -u sas -p Orion123&lt;/P&gt;</description>
    <pubDate>Mon, 20 Feb 2023 14:34:23 GMT</pubDate>
    <dc:creator>DavidHD</dc:creator>
    <dc:date>2023-02-20T14:34:23Z</dc:date>
    <item>
      <title>sas-viya auth login</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/sas-viya-auth-login/m-p/859634#M26021</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I want to use the 'sas-viya' CLI tool with Viya 21-##-##. I've set the trusted certificate (copied from the sas-logon pod) and a valid sas user, I get 'Login failed. Bad userid or password'.&lt;/P&gt;&lt;P&gt;While trying the documented 'sas-viya --insecure auth login', which bypasses the TLS auth, I still can't connect.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Attached is the output I get using: sas-viya --insecure auth login --verbose&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any clues appreciated. Thx.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="sas-viya-login-error.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/80586i73A86DDF4015E42D/image-size/large?v=v2&amp;amp;px=999" role="button" title="sas-viya-login-error.png" alt="sas-viya-login-error.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 19 Feb 2023 17:07:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/sas-viya-auth-login/m-p/859634#M26021</guid>
      <dc:creator>RexDeus9</dc:creator>
      <dc:date>2023-02-19T17:07:32Z</dc:date>
    </item>
    <item>
      <title>Re: sas-viya auth login</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/sas-viya-auth-login/m-p/859636#M26022</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;do you by chance have a URL special character in your password? If so please URL encode it and try to authenticate again.</description>
      <pubDate>Sun, 19 Feb 2023 17:32:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/sas-viya-auth-login/m-p/859636#M26022</guid>
      <dc:creator>DavidHD</dc:creator>
      <dc:date>2023-02-19T17:32:13Z</dc:date>
    </item>
    <item>
      <title>Re: sas-viya auth login</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/sas-viya-auth-login/m-p/859641#M26023</link>
      <description>&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for such a quick reply. No, I don't have&amp;nbsp;&lt;SPAN&gt;URL special character, it's the very common 'Orion123'. I don't understand why we are provided with the '-k' and '--insecure' arguments to bypass TLS, but it doesn't.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 19 Feb 2023 18:54:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/sas-viya-auth-login/m-p/859641#M26023</guid>
      <dc:creator>RexDeus9</dc:creator>
      <dc:date>2023-02-19T18:54:34Z</dc:date>
    </item>
    <item>
      <title>Re: sas-viya auth login</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/sas-viya-auth-login/m-p/859673#M26024</link>
      <description>&lt;P&gt;This is what I normally do and it always works for me&lt;BR /&gt;export SSL_CERT_FILE=/opt/sas/viya/config/etc/SASSecurityCertificateFramework/cacerts/trustedcerts.pem&lt;BR /&gt;/opt/sas/viya/home/bin/sas-admin profile set-endpoint "&amp;lt;url&amp;gt;"&lt;BR /&gt;/opt/sas/viya/home/bin/sas-admin profile toggle-color off&lt;BR /&gt;/opt/sas/viya/home/bin/sas-admin profile set-output fulljson&lt;BR /&gt;/opt/sas/viya/home/bin/sas-admin auth login --user '&amp;lt;user&amp;gt;' --password '&amp;lt;password&amp;gt;'&lt;/P&gt;</description>
      <pubDate>Mon, 20 Feb 2023 08:34:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/sas-viya-auth-login/m-p/859673#M26024</guid>
      <dc:creator>sangavis37</dc:creator>
      <dc:date>2023-02-20T08:34:51Z</dc:date>
    </item>
    <item>
      <title>Re: sas-viya auth login</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/sas-viya-auth-login/m-p/859703#M26026</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please read carefully, I'm using 'sas-viya' CLI tool, not 'sas-admin', which is intended for Viya 3.x, while 'sas-viya' is for Viya 21xx-xx and above.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Feb 2023 13:53:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/sas-viya-auth-login/m-p/859703#M26026</guid>
      <dc:creator>RexDeus9</dc:creator>
      <dc:date>2023-02-20T13:53:47Z</dc:date>
    </item>
    <item>
      <title>Re: sas-viya auth login</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/sas-viya-auth-login/m-p/859705#M26028</link>
      <description>How are you determining the --insecure, -k option is not bypassing TLS validation? &lt;BR /&gt;&lt;BR /&gt;From your screenshot you've provided the URL as http not https, and --verbose should be before "auth login"</description>
      <pubDate>Mon, 20 Feb 2023 13:57:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/sas-viya-auth-login/m-p/859705#M26028</guid>
      <dc:creator>gwootton</dc:creator>
      <dc:date>2023-02-20T13:57:26Z</dc:date>
    </item>
    <item>
      <title>Re: sas-viya auth login</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/sas-viya-auth-login/m-p/859709#M26029</link>
      <description>sas-viya and sas-admin work very similarly. If you have the certificate from sas-logon-app pod you can specify it in the environment variable SSL_CERT_FILE. The other commands mentioned are also valid with the sas-viya command.&lt;BR /&gt;&lt;BR /&gt;Command-Line Interface: Preliminary Instructions&lt;BR /&gt;&lt;A href="https://go.documentation.sas.com/doc/en/sasadmincdc/v_037/calcli/n1e2dehluji7jon1gk69yggc6i28.htm" target="_blank"&gt;https://go.documentation.sas.com/doc/en/sasadmincdc/v_037/calcli/n1e2dehluji7jon1gk69yggc6i28.htm&lt;/A&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 20 Feb 2023 14:02:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/sas-viya-auth-login/m-p/859709#M26029</guid>
      <dc:creator>gwootton</dc:creator>
      <dc:date>2023-02-20T14:02:00Z</dc:date>
    </item>
    <item>
      <title>Re: sas-viya auth login</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/sas-viya-auth-login/m-p/859710#M26030</link>
      <description>&lt;P&gt;TLS/SSL is not your problem. Also,&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/437007"&gt;@sangavis37&lt;/a&gt;&amp;nbsp;'s commands will work if you replace sas-admin with sas-viya.&lt;/P&gt;
&lt;P&gt;Is the endpoint URL you are going to correct? &lt;A href="http://sasserver.demo.sas.com" target="_blank"&gt;http://sasserver.demo.sas.com&lt;/A&gt;&amp;nbsp;does not exist according to my browser.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Feb 2023 14:03:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/sas-viya-auth-login/m-p/859710#M26030</guid>
      <dc:creator>doug_sas</dc:creator>
      <dc:date>2023-02-20T14:03:17Z</dc:date>
    </item>
    <item>
      <title>Re: sas-viya auth login</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/sas-viya-auth-login/m-p/859711#M26031</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes thank you, I corrected the '--verbose' argument afterwards (did not update the screen shot), and still no luck.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using '-k' (or --insecure) still ask you for the userid/password.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Feb 2023 14:09:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/sas-viya-auth-login/m-p/859711#M26031</guid>
      <dc:creator>RexDeus9</dc:creator>
      <dc:date>2023-02-20T14:09:18Z</dc:date>
    </item>
    <item>
      <title>Re: sas-viya auth login</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/sas-viya-auth-login/m-p/859712#M26032</link>
      <description>Are you expecting it not to ask for your user ID and password? That should happen when you run auth login.</description>
      <pubDate>Mon, 20 Feb 2023 14:11:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/sas-viya-auth-login/m-p/859712#M26032</guid>
      <dc:creator>gwootton</dc:creator>
      <dc:date>2023-02-20T14:11:03Z</dc:date>
    </item>
    <item>
      <title>Re: sas-viya auth login</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/sas-viya-auth-login/m-p/859715#M26034</link>
      <description>&lt;P&gt;The -k/--insecure mean that the certificate validation step is skipped.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would suggest trying to ping the server (&lt;A href="http://sasserver.demo.sas.com" target="_blank"&gt;http://sasserver.demo.sas.com&lt;/A&gt;) from the command line and make sure that you get something in return.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Next try logging in using:&lt;/P&gt;
&lt;P&gt;sas-viya -k auth login -u sas -p Orion123&lt;/P&gt;</description>
      <pubDate>Mon, 20 Feb 2023 14:34:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/sas-viya-auth-login/m-p/859715#M26034</guid>
      <dc:creator>DavidHD</dc:creator>
      <dc:date>2023-02-20T14:34:23Z</dc:date>
    </item>
    <item>
      <title>Re: sas-viya auth login</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/sas-viya-auth-login/m-p/860183#M26063</link>
      <description>&lt;P&gt;Thank you for the replies provided. I was able resolved the issue with the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;sas-admin profile init&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Enter:&amp;nbsp;&lt;A href="http://sasserver.demo.sas.com" target="_blank"&gt;http://sasserver.demo.sas.com&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;*** RESET TOKEN ***&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;sas-admin --verbose --profile Default -k auth login&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Enter &amp;lt;UserID&amp;gt;/&amp;lt;Password&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;All is good!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Feb 2023 14:46:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/sas-viya-auth-login/m-p/860183#M26063</guid>
      <dc:creator>RexDeus9</dc:creator>
      <dc:date>2023-02-22T14:46:46Z</dc:date>
    </item>
  </channel>
</rss>

