<?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: Query Regarding SAS Kernel connection through https method in Jupyter notebook. in SAS Viya</title>
    <link>https://communities.sas.com/t5/SAS-Viya/Query-Regarding-SAS-Kernel-connection-through-https-method-in/m-p/943774#M2575</link>
    <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/469496"&gt;@navdeepk&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"&lt;SPAN&gt;Is the userId and userpassword same as the email and password I use to login to sasviya app?"&amp;nbsp;&lt;BR /&gt;Yes, it should be.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Please ensure the credentials (username/password) you have used in the .authinfo|_authinfo file, are correct and you can successfully login into SAS Viya when using the Viya Web Login page from your browser.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/143096"&gt;@sastpw&lt;/a&gt;&amp;nbsp;&amp;nbsp;are we missing anything else here?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 13 Sep 2024 12:38:33 GMT</pubDate>
    <dc:creator>AhmedAl_Attar</dc:creator>
    <dc:date>2024-09-13T12:38:33Z</dc:date>
    <item>
      <title>Query Regarding SAS Kernel connection through https method in Jupyter notebook.</title>
      <link>https://communities.sas.com/t5/SAS-Viya/Query-Regarding-SAS-Kernel-connection-through-https-method-in/m-p/943614#M2570</link>
      <description>&lt;P&gt;I am having trouble connecting sas_kernel in jupyter to SAS viya. I am currently on a free trial , I found the below spec which needs to be changed in order ti connect with SAS viya.&lt;BR /&gt;&lt;BR /&gt;httpsviya = {'url' : '&lt;A href="https://viya.deployment.com" target="_blank"&gt;https://viya.deployment.com&lt;/A&gt;',&lt;BR /&gt;'context' : 'SAS Studio compute context',&lt;BR /&gt;'authkey' : 'viya_user-pw',&lt;BR /&gt;'options' : ["fullstimer", "memsize=1G"]&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;But I am not sure on where to find and what to fill in them. Any help?&lt;/P&gt;</description>
      <pubDate>Thu, 12 Sep 2024 11:21:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/Query-Regarding-SAS-Kernel-connection-through-https-method-in/m-p/943614#M2570</guid>
      <dc:creator>navdeepk</dc:creator>
      <dc:date>2024-09-12T11:21:46Z</dc:date>
    </item>
    <item>
      <title>Re: Query Regarding SAS Kernel connection through https method in Jupyter notebook.</title>
      <link>https://communities.sas.com/t5/SAS-Viya/Query-Regarding-SAS-Kernel-connection-through-https-method-in/m-p/943648#M2571</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/469496"&gt;@navdeepk&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Check out the SASPy configuration&amp;nbsp;&lt;A title="SASPy configuration" href="https://sassoftware.github.io/saspy/configuration.html#sascfg-personal-py" target="_blank" rel="noopener"&gt;SASPy configuration&lt;/A&gt;&amp;nbsp;for how to set this up&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps,&lt;/P&gt;
&lt;P&gt;Ahmed&lt;/P&gt;</description>
      <pubDate>Thu, 12 Sep 2024 14:19:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/Query-Regarding-SAS-Kernel-connection-through-https-method-in/m-p/943648#M2571</guid>
      <dc:creator>AhmedAl_Attar</dc:creator>
      <dc:date>2024-09-12T14:19:31Z</dc:date>
    </item>
    <item>
      <title>Re: Query Regarding SAS Kernel connection through https method in Jupyter notebook.</title>
      <link>https://communities.sas.com/t5/SAS-Viya/Query-Regarding-SAS-Kernel-connection-through-https-method-in/m-p/943650#M2572</link>
      <description>Hi Ahmed, I did check it out as i mentioned&lt;BR /&gt;httpsviya = {'url' : '&lt;A href="https://viya.deployment.com" target="_blank"&gt;https://viya.deployment.com&lt;/A&gt;',&lt;BR /&gt;'context' : 'SAS Studio compute context',&lt;BR /&gt;'authkey' : 'viya_user-pw',&lt;BR /&gt;'options' : ["fullstimer", "memsize=1G"]&lt;BR /&gt;}&lt;BR /&gt;This is what needs to be filled as per my understanding. But i am not sure on where to find for those values. Like what would the auth key be and the url be.&lt;BR /&gt;&lt;BR /&gt;Ps: I am using the free trial of sas viya on web.</description>
      <pubDate>Thu, 12 Sep 2024 14:24:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/Query-Regarding-SAS-Kernel-connection-through-https-method-in/m-p/943650#M2572</guid>
      <dc:creator>navdeepk</dc:creator>
      <dc:date>2024-09-12T14:24:10Z</dc:date>
    </item>
    <item>
      <title>Re: Query Regarding SAS Kernel connection through https method in Jupyter notebook.</title>
      <link>https://communities.sas.com/t5/SAS-Viya/Query-Regarding-SAS-Kernel-connection-through-https-method-in/m-p/943663#M2573</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/469496"&gt;@navdeepk&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just clarify this for me&lt;/P&gt;
&lt;P&gt;1. When you said "&lt;EM&gt;Ps: I am using the free trial of sas viya on web&lt;/EM&gt;&lt;SPAN&gt;", doesn't that imply you have a URL to access viya!?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;if so, then that would be the value for the url: key&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;2. the SASPy configuration link I sent you, has the following&lt;/P&gt;
&lt;PRE&gt;The .authinfo file (_authinfo on Windows)¶
The IOM and HTTP access methods have support for getting the required user/password &lt;BR /&gt;from an authinfo file in the user’s home directory instead of prompting for it. &lt;BR /&gt;On linux, the file is named .authinfo and on windows, it’s _authinfo. The format of &lt;BR /&gt;the line in the authinfo file is as follows. The first value is the authkey value &lt;BR /&gt;you specify for authkey. Next is the ‘user’ key followed by the value (the user id) &lt;BR /&gt;and then ‘password’ key followed by its value (the user’s password). &lt;BR /&gt;Note that there are permission rules for this file. On linux the file must have &lt;BR /&gt;permissions of 600, only the user can read or write the file. On Windows, the file &lt;BR /&gt;should be equally locked down to where only the owner can read and write it. &lt;BR /&gt;Also, the encoding of this file should be UTF-8, or any encoding that has ASCII &lt;BR /&gt;as it’s low order 7-bits if you only use those characters in the file. &lt;BR /&gt;It’s read into Python as is, and thus is expected to be utf-8.&lt;/PRE&gt;
&lt;P&gt;So, wherever (Windows | Linux) you are launching Jupyter from, place/create the _authinfo | .authinfo file in your home (C:\Users\&amp;lt;YourID&amp;gt; | /home/&amp;lt;YourID&amp;gt; ) directory, with the following contents&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;authkey user &amp;lt;viya_user_id&amp;gt; password &amp;lt;viya_user_password&amp;gt;&lt;/PRE&gt;
&lt;P&gt;Hope this helps&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Sep 2024 15:21:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/Query-Regarding-SAS-Kernel-connection-through-https-method-in/m-p/943663#M2573</guid>
      <dc:creator>AhmedAl_Attar</dc:creator>
      <dc:date>2024-09-12T15:21:38Z</dc:date>
    </item>
    <item>
      <title>Re: Query Regarding SAS Kernel connection through https method in Jupyter notebook.</title>
      <link>https://communities.sas.com/t5/SAS-Viya/Query-Regarding-SAS-Kernel-connection-through-https-method-in/m-p/943767#M2574</link>
      <description>&lt;P&gt;I have tried it, I am getting the below error&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;SASHTTPauthenticateError&lt;/SPAN&gt;: Failure in GET AuthToken.
Failure in GET AuthToken. Status=401
Response=b'{"error":"unauthorized","error_description":"Bad credentials"}'&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;Is the userId and userpassword same as the email and password I use to login to sasviya app? Or Is it something else, if yes could you tell me where to find them.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Sep 2024 11:35:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/Query-Regarding-SAS-Kernel-connection-through-https-method-in/m-p/943767#M2574</guid>
      <dc:creator>navdeepk</dc:creator>
      <dc:date>2024-09-13T11:35:41Z</dc:date>
    </item>
    <item>
      <title>Re: Query Regarding SAS Kernel connection through https method in Jupyter notebook.</title>
      <link>https://communities.sas.com/t5/SAS-Viya/Query-Regarding-SAS-Kernel-connection-through-https-method-in/m-p/943774#M2575</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/469496"&gt;@navdeepk&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"&lt;SPAN&gt;Is the userId and userpassword same as the email and password I use to login to sasviya app?"&amp;nbsp;&lt;BR /&gt;Yes, it should be.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Please ensure the credentials (username/password) you have used in the .authinfo|_authinfo file, are correct and you can successfully login into SAS Viya when using the Viya Web Login page from your browser.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/143096"&gt;@sastpw&lt;/a&gt;&amp;nbsp;&amp;nbsp;are we missing anything else here?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Sep 2024 12:38:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/Query-Regarding-SAS-Kernel-connection-through-https-method-in/m-p/943774#M2575</guid>
      <dc:creator>AhmedAl_Attar</dc:creator>
      <dc:date>2024-09-13T12:38:33Z</dc:date>
    </item>
    <item>
      <title>Re: Query Regarding SAS Kernel connection through https method in Jupyter notebook.</title>
      <link>https://communities.sas.com/t5/SAS-Viya/Query-Regarding-SAS-Kernel-connection-through-https-method-in/m-p/943779#M2576</link>
      <description>&lt;P&gt;&lt;A href="https://imgur.com/a/W8Ojemg" target="_blank"&gt;https://imgur.com/a/W8Ojemg&lt;/A&gt;&lt;BR /&gt;I did try with my credentials, its not working.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Sep 2024 12:54:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/Query-Regarding-SAS-Kernel-connection-through-https-method-in/m-p/943779#M2576</guid>
      <dc:creator>navdeepk</dc:creator>
      <dc:date>2024-09-13T12:54:15Z</dc:date>
    </item>
    <item>
      <title>Re: Query Regarding SAS Kernel connection through https method in Jupyter notebook.</title>
      <link>https://communities.sas.com/t5/SAS-Viya/Query-Regarding-SAS-Kernel-connection-through-https-method-in/m-p/943790#M2577</link>
      <description>&lt;P&gt;Hey, sure I can help. First, Can you point me to where the free trial info is, so I can try it out to see; be sure I'm getting at the same thig you are. Second, Viya has more than one authentication mechanism. Are you sure it's configured to use user/pw? They've gone away from that due to 'security' and generally use the authcode mechanism in deployments these days; but I don't know how this is set up. Did you try the authcode path? In the screen shot it shows where it asks you which mechanism to use. Did you try the other? Have you successfully connected to it using any other client? Did you get instructions from the free trial saying how to connect to it (that wouldn't be for saspy, but for Studio or something)?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Tom&lt;/P&gt;</description>
      <pubDate>Fri, 13 Sep 2024 13:18:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/Query-Regarding-SAS-Kernel-connection-through-https-method-in/m-p/943790#M2577</guid>
      <dc:creator>sastpw</dc:creator>
      <dc:date>2024-09-13T13:18:58Z</dc:date>
    </item>
    <item>
      <title>Re: Query Regarding SAS Kernel connection through https method in Jupyter notebook.</title>
      <link>https://communities.sas.com/t5/SAS-Viya/Query-Regarding-SAS-Kernel-connection-through-https-method-in/m-p/943796#M2578</link>
      <description>&lt;P&gt;Ok, well, I googled viya free trial and got to it. I guess it's the same as what you're using. This is set up for authcode authentication, like I would have guessed. That requires you to go to a web page and sign in to get a one time authcode to use to sign in. Like when you log on to anything on the internet these days and they send you a one time use code you have to enter.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; sas = saspy.SASsession(url='&lt;A href="https://azureuse011476.my-trials.sas.com" target="_blank"&gt;https://azureuse011476.my-trials.sas.com&lt;/A&gt;')&lt;BR /&gt;To connect to Viya you need either an authcode or a userid/pw. Neither were provided.&lt;BR /&gt;Please enter which one you want to enter next. Type one of these now: [default=authcode | userid]:&lt;BR /&gt;The PKCE required url to authenticate with is &lt;A href="https://azureuse011476.my-trials.sas.com/SASLogon/oauth/authorize?client_id=SASPy&amp;amp;response_type=code&amp;amp;code_challenge_method=S256&amp;amp;code_challenge=3f5_r3_ynBTMoAPlvDLAI6BTu8LdVLuXgePKMOmstMg" target="_blank"&gt;https://azureuse011476.my-trials.sas.com/SASLogon/oauth/authorize?client_id=SASPy&amp;amp;response_type=code&amp;amp;code_challenge_method=S256&amp;amp;code_challenge=3f5_r3_ynBTMoAPlvDLAI6BTu8LdVLuXgePKMOmstMg&lt;/A&gt;&lt;BR /&gt;Please enter authcode: Q_mq25QG-GzdUPS_GzcFjhSJCWbdfhRI&lt;BR /&gt;Please enter the SAS Context you wish to run. Available contexts are: ['Import 9 service compute context', 'SAS Visual Forecasting compute context', 'Data Mining compute context', 'CAS Formats service compute context', 'CAS Management service compute conte&lt;BR /&gt;xt', 'SAS Job Execution compute context', 'SAS Studio compute context', 'Natural Language Conversations service compute context', 'SAS Model Manager compute context', 'SAS Backup job compute context'] SAS Studio compute context&lt;BR /&gt;SAS server started using Context SAS Studio compute context with SESSION_ID=b6181d9f-a809-41ee-9997-f136a2cf02e4-ses0000&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; sas&lt;BR /&gt;Access Method = HTTP&lt;BR /&gt;SAS Config name = default&lt;BR /&gt;SAS Config file = /r/sanyo.unx.sas.com/vol/vol810/u81/sastpw/.config/saspy/sascfg_personal.py&lt;BR /&gt;WORK Path = /opt/sas/viya/config/var/tmp/compsrv/default/b6181d9f-a809-41ee-9997-f136a2cf02e4/SAS_work239F0000016D_sas-compute-server-035b3e9a-339d-470c-8cf2-11a28d5e0de5-4m7d5/&lt;BR /&gt;SAS Version = V.04.00M0P03182024&lt;BR /&gt;SASPy Version = 5.100.3&lt;BR /&gt;Teach me SAS = False&lt;BR /&gt;Batch = False&lt;BR /&gt;Results = Pandas&lt;BR /&gt;SAS Session Encoding = utf-8&lt;BR /&gt;Python Encoding value = utf_8&lt;BR /&gt;SAS process Pid value = 365&lt;BR /&gt;SASsession started = Fri Sep 13 09:27:51 2024&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; sas.assigned_librefs()&lt;BR /&gt;['SASHELP', 'MAPS', 'MAPSSAS', 'MAPSGFK', 'SASUSER', 'WORK']&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Sep 2024 13:31:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/Query-Regarding-SAS-Kernel-connection-through-https-method-in/m-p/943796#M2578</guid>
      <dc:creator>sastpw</dc:creator>
      <dc:date>2024-09-13T13:31:22Z</dc:date>
    </item>
    <item>
      <title>Re: Query Regarding SAS Kernel connection through https method in Jupyter notebook.</title>
      <link>https://communities.sas.com/t5/SAS-Viya/Query-Regarding-SAS-Kernel-connection-through-https-method-in/m-p/943805#M2579</link>
      <description>&lt;P&gt;And, just to show you can get there from the SAS_Kernel too (which just uses SASPy under the covers). Given the following Configuration Definition in my sascfg_personal.py:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;vft = {'url' : '&lt;A href="https://azureuse011476.my-trials.sas.com" target="_blank"&gt;https://azureuse011476.my-trials.sas.com&lt;/A&gt;',&lt;BR /&gt;'context' : 'SAS Studio compute context',&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can connect the same (BTW, at the prompt for authcode or userid, since the default is authcode, you can just hit enter - that's why you don't see 'authcode' typed in):&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sastpw_0-1726234930465.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/100298i26311860343935E4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sastpw_0-1726234930465.png" alt="sastpw_0-1726234930465.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Sep 2024 13:44:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/Query-Regarding-SAS-Kernel-connection-through-https-method-in/m-p/943805#M2579</guid>
      <dc:creator>sastpw</dc:creator>
      <dc:date>2024-09-13T13:44:02Z</dc:date>
    </item>
    <item>
      <title>Re: Query Regarding SAS Kernel connection through https method in Jupyter notebook.</title>
      <link>https://communities.sas.com/t5/SAS-Viya/Query-Regarding-SAS-Kernel-connection-through-https-method-in/m-p/943830#M2580</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/143096"&gt;@sastpw&lt;/a&gt;&amp;nbsp; Thanks for the detailed info, I am able to connect to saspy via python kernel, but through sas kernel I am directly getting unauthenticated error&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;[&amp;lt;class 'saspy.sasexceptions.SASHTTPauthenticateError'&amp;gt;, SASHTTPauthenticateError('Failure in GET AuthToken. Status=401\nResponse=b\'{"error":"unauthorized","error_description":"Bad credentials"}\''), &amp;lt;traceback object at 0x11ac1c0c0&amp;gt;]&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN class=""&gt;It is not asking for a prompt to provide the auth key like it did in python. Is there any config step I missing here?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Also every time I want to use a new session should I get that auth key or is there a one time solution available?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Sep 2024 16:53:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/Query-Regarding-SAS-Kernel-connection-through-https-method-in/m-p/943830#M2580</guid>
      <dc:creator>navdeepk</dc:creator>
      <dc:date>2024-09-13T16:53:07Z</dc:date>
    </item>
    <item>
      <title>Re: Query Regarding SAS Kernel connection through https method in Jupyter notebook.</title>
      <link>https://communities.sas.com/t5/SAS-Viya/Query-Regarding-SAS-Kernel-connection-through-https-method-in/m-p/943835#M2581</link>
      <description>&lt;P&gt;Its now working with sas kernel as well, after removing the .authinfo from home dir its now asking for the prompt. Can we do anything so that the prompt is not needed any more and as soon as I launch a new kernel it gets connected to sas viya?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Sep 2024 17:32:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/Query-Regarding-SAS-Kernel-connection-through-https-method-in/m-p/943835#M2581</guid>
      <dc:creator>navdeepk</dc:creator>
      <dc:date>2024-09-13T17:32:49Z</dc:date>
    </item>
    <item>
      <title>Re: Query Regarding SAS Kernel connection through https method in Jupyter notebook.</title>
      <link>https://communities.sas.com/t5/SAS-Viya/Query-Regarding-SAS-Kernel-connection-through-https-method-in/m-p/943848#M2582</link>
      <description>&lt;P&gt;It doesn't look like it. The way that viya system's configured, it not only requires a unique authcode every time you connect, but the url for getting the code is a different one every time also, so you're forced to have to try to connect, get the unique url and then provide the code that you get from that. This has nothing to do with saspy (though I support it as a connection mechanism), it's viya that's configured this way as the only way to connect to it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Previously when they came up with this authcode scheme, the URL was fixed, so you could at least go get the code and then pass it in on the SASsession call as below. But now it uses a&amp;nbsp;PKCE URL which is required and precludes being able to even know the url to get a code from because the url changes every time, just like the code. It's all in the name of security it seems. And yes, it's no fun, but I can't fix that. If they enables user/pw authentication, you could have used your creds in an authinfo file and it would just connect you like you (anyone) want(s). But that's not allowed, only the PKCE authcode scheme.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; sas = saspy.SASsession(cfgname='vft', authcode='VhZSA1xZVOskqT8aMWeu4gMEyGO7ZEiq')&lt;BR /&gt;Traceback (most recent call last):&lt;BR /&gt;File "&amp;lt;stdin&amp;gt;", line 1, in &amp;lt;module&amp;gt;&lt;BR /&gt;File "/opt/tom/github/saspy/saspy/sasbase.py", line 598, in __init__&lt;BR /&gt;self._io = SASsessionHTTP(sascfgname=self.sascfg.name, sb=self, **kwargs)&lt;BR /&gt;File "/opt/tom/github/saspy/saspy/sasiohttp.py", line 751, in __init__&lt;BR /&gt;self.sascfg = SASconfigHTTP(self, **kwargs)&lt;BR /&gt;File "/opt/tom/github/saspy/saspy/sasiohttp.py", line 518, in __init__&lt;BR /&gt;js = self._authenticate(user, pw, authcode, client_id, client_secret, jwt, cv)&lt;BR /&gt;File "/opt/tom/github/saspy/saspy/sasiohttp.py", line 623, in _authenticate&lt;BR /&gt;raise SASHTTPauthenticateError(msg)&lt;BR /&gt;saspy.sasexceptions.SASHTTPauthenticateError: Failure in GET AuthToken.&lt;BR /&gt;A PKCE URL is configured to be used to acquire an authcode with is system, but a non-PKCE authcode was passed in.&lt;BR /&gt;Failure in GET AuthToken.&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; sas = saspy.SASsession(cfgname='vft', authcode='IOBhsXdPFv4P1LvWUZcFLqCAZKgCNzzN')&lt;BR /&gt;Traceback (most recent call last):&lt;BR /&gt;File "&amp;lt;stdin&amp;gt;", line 1, in &amp;lt;module&amp;gt;&lt;BR /&gt;File "/opt/tom/github/saspy/saspy/sasbase.py", line 598, in __init__&lt;BR /&gt;self._io = SASsessionHTTP(sascfgname=self.sascfg.name, sb=self, **kwargs)&lt;BR /&gt;File "/opt/tom/github/saspy/saspy/sasiohttp.py", line 751, in __init__&lt;BR /&gt;self.sascfg = SASconfigHTTP(self, **kwargs)&lt;BR /&gt;File "/opt/tom/github/saspy/saspy/sasiohttp.py", line 518, in __init__&lt;BR /&gt;js = self._authenticate(user, pw, authcode, client_id, client_secret, jwt, cv)&lt;BR /&gt;File "/opt/tom/github/saspy/saspy/sasiohttp.py", line 623, in _authenticate&lt;BR /&gt;raise SASHTTPauthenticateError(msg)&lt;BR /&gt;saspy.sasexceptions.SASHTTPauthenticateError: Failure in GET AuthToken.&lt;BR /&gt;A PKCE URL is configured to be used to acquire an authcode with is system, but a non-PKCE authcode was passed in.&lt;BR /&gt;Failure in GET AuthToken.&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Sep 2024 18:34:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/Query-Regarding-SAS-Kernel-connection-through-https-method-in/m-p/943848#M2582</guid>
      <dc:creator>sastpw</dc:creator>
      <dc:date>2024-09-13T18:34:51Z</dc:date>
    </item>
    <item>
      <title>Re: Query Regarding SAS Kernel connection through https method in Jupyter notebook.</title>
      <link>https://communities.sas.com/t5/SAS-Viya/Query-Regarding-SAS-Kernel-connection-through-https-method-in/m-p/943852#M2583</link>
      <description>&lt;P&gt;Okay Got it. Thanks for the clarification guys.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Sep 2024 18:58:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/Query-Regarding-SAS-Kernel-connection-through-https-method-in/m-p/943852#M2583</guid>
      <dc:creator>navdeepk</dc:creator>
      <dc:date>2024-09-13T18:58:23Z</dc:date>
    </item>
    <item>
      <title>Re: Query Regarding SAS Kernel connection through https method in Jupyter notebook.</title>
      <link>https://communities.sas.com/t5/SAS-Viya/Query-Regarding-SAS-Kernel-connection-through-https-method-in/m-p/947850#M2635</link>
      <description>&lt;P&gt;Hi, I am trying to read a file from my jupyter notebook how do I send this file or is there any way to read file (either from local or from was drive). Can someone provide me a code snippet and how to do it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2024 12:52:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/Query-Regarding-SAS-Kernel-connection-through-https-method-in/m-p/947850#M2635</guid>
      <dc:creator>navdeepk</dc:creator>
      <dc:date>2024-10-17T12:52:50Z</dc:date>
    </item>
    <item>
      <title>Re: Query Regarding SAS Kernel connection through https method in Jupyter notebook.</title>
      <link>https://communities.sas.com/t5/SAS-Viya/Query-Regarding-SAS-Kernel-connection-through-https-method-in/m-p/947861#M2636</link>
      <description>&lt;P&gt;You can use saspy to upload/download file between client and server. From the SAS Kernel, you can't do anything but submit SAS code, so I don't know how you would do that. FWIW, the sas.submitLST() method from a python Kernel is the equivalent of the SAS Kernel, and you can do so much more w/ python. Just sayin.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's an example of using upload (download is similar) to upload a sas data set (can be any file) to the work directory of a viya deployment; that's about the only dir in viya you have write permission to.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; sas&lt;BR /&gt;Access Method = HTTP&lt;BR /&gt;SAS Config name = tth&lt;BR /&gt;SAS Config file = /opt/tom/github/saspy/saspy/sascfg_personal.py&lt;BR /&gt;WORK Path = /opt/sas/viya/config/var/tmp/compsrv/default/6eca835b-7b16-48df-af86-6dad81576f75/SAS_workF01B000001BE_sas-compute-server-094e063f-11eb-450c-88a6-8261f5b3c3e1-56/&lt;BR /&gt;SAS Version = V.04.00M0P10142024&lt;BR /&gt;SASPy Version = 5.100.3&lt;BR /&gt;Teach me SAS = False&lt;BR /&gt;Batch = False&lt;BR /&gt;Results = Pandas&lt;BR /&gt;SAS Session Encoding = utf-8&lt;BR /&gt;Python Encoding value = utf_8&lt;BR /&gt;SAS process Pid value = 446&lt;BR /&gt;SASsession started = Thu Oct 17 09:23:32 2024&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; sas.list_tables('work')&lt;BR /&gt;[]&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; sas.dirlist(sas.workpath)&lt;BR /&gt;['sasmac3.sas7bcat', 'sasmacr.sas7bcat', 'sastmp-000000004.sas7bitm', 'sas.lck', 'sasgopt.sas7bcat', 'profile.sas7bcat', 'regstry.sas7bitm']&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; log = sas.upload('a.sas7bdat', sas.workpath)&lt;/P&gt;
&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; for item in log: print(item, ':', log[item])&lt;BR /&gt;...&lt;BR /&gt;Success : True&lt;BR /&gt;LOG : 108 filename _sp_updn&lt;BR /&gt;108! '/opt/sas/viya/config/var/tmp/compsrv/default/6eca835b-7b16-48df-af86-6dad81576f75/SAS_workF01B000001BE_sas-compute-server-094e&lt;BR /&gt;108! 063f-11eb-450c-88a6-8261f5b3c3e1-56//a.sas7bdat' recfm=N permission='';&lt;/P&gt;
&lt;P&gt;109 filename _sp_updn;&lt;BR /&gt;NOTE: Fileref _SP_UPDN has been deassigned.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; sas.list_tables('work')&lt;BR /&gt;[('A', 'DATA')]&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; sas.dirlist(sas.workpath)&lt;BR /&gt;['sasmac3.sas7bcat', 'sasmacr.sas7bcat', 'a.sas7bdat', 'sastmp-000000004.sas7bitm', 'sas.lck', 'sasgopt.sas7bcat', 'profile.sas7bcat', 'regstry.sas7bitm']&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; sd = sas.sasdata('a')&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; sd.columnInfo()&lt;BR /&gt;Member Num Variable Type Len Pos&lt;BR /&gt;0 WORK.A 1.0 x Num 8.0 0.0&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2024 13:40:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/Query-Regarding-SAS-Kernel-connection-through-https-method-in/m-p/947861#M2636</guid>
      <dc:creator>sastpw</dc:creator>
      <dc:date>2024-10-17T13:40:44Z</dc:date>
    </item>
    <item>
      <title>Re: Query Regarding SAS Kernel connection through https method in Jupyter notebook.</title>
      <link>https://communities.sas.com/t5/SAS-Viya/Query-Regarding-SAS-Kernel-connection-through-https-method-in/m-p/947866#M2637</link>
      <description>&lt;P&gt;So cant we upload file in the Sas drive and access it here? I basically need to upload a csv file and then access it in my code.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2024 14:02:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/Query-Regarding-SAS-Kernel-connection-through-https-method-in/m-p/947866#M2637</guid>
      <dc:creator>navdeepk</dc:creator>
      <dc:date>2024-10-17T14:02:01Z</dc:date>
    </item>
    <item>
      <title>Re: Query Regarding SAS Kernel connection through https method in Jupyter notebook.</title>
      <link>https://communities.sas.com/t5/SAS-Viya/Query-Regarding-SAS-Kernel-connection-through-https-method-in/m-p/947871#M2638</link>
      <description>&lt;P&gt;I'm afraid I don't know. Were there instructions that came with the free trial you're using?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2024 14:28:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/Query-Regarding-SAS-Kernel-connection-through-https-method-in/m-p/947871#M2638</guid>
      <dc:creator>sastpw</dc:creator>
      <dc:date>2024-10-17T14:28:00Z</dc:date>
    </item>
    <item>
      <title>Re: Query Regarding SAS Kernel connection through https method in Jupyter notebook.</title>
      <link>https://communities.sas.com/t5/SAS-Viya/Query-Regarding-SAS-Kernel-connection-through-https-method-in/m-p/947937#M2639</link>
      <description>&lt;P&gt;No, I was able to upload the file and run some code on it using saspy. But even here the uploaded csv is temporary and goes on a random link right. If I wish to run the code again I have to again upload it. Is there any permanent solution for this. Also this was working fine with saspy (python kernel) but with Sas kernel its not the case. From Sas kernel I was not able to upload the file as well.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2024 19:05:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/Query-Regarding-SAS-Kernel-connection-through-https-method-in/m-p/947937#M2639</guid>
      <dc:creator>navdeepk</dc:creator>
      <dc:date>2024-10-17T19:05:23Z</dc:date>
    </item>
    <item>
      <title>Re: Query Regarding SAS Kernel connection through https method in Jupyter notebook.</title>
      <link>https://communities.sas.com/t5/SAS-Viya/Query-Regarding-SAS-Kernel-connection-through-https-method-in/m-p/947939#M2640</link>
      <description>&lt;P&gt;Yes, that all sounds correct. The SAS_Kernel is just a jupyter extension that calls SASPy under the covers, so all you can do in a SAS notebook is execute SAS code. A Python notebook lets you use SASPy directly and have all the functionality at your disposal. But, in either case, it is just a connection to a single, one time use, SAS Process in a container, in a pod, on the K8S deployment that's Viya. SASPy isn't a Viya application, like say SAS Studio, which is part of Viya itself. I have to believe that SAS Studio would have a way to access the SAS Drive and upload files from your client.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have to admit, I don't use any of that which is why I don't simply have the answer for you. What would need to happen, is for any SAS session you spin up and connect to in the Viya deployment, there would have to be a libref or fileref that it knows about and can access the 'Drive' you have with whatever data you have in it. I just an not familiar with any of that, but I will do some more investigation to see if I can figure it out. If a SAS session itself can access that, then it should be doable from SASPy. If all of that has to be implemented by a Viya client, and SAS itself had no concept of the SAS Drive component in the Viya deployment (there are hundreds of components in a Viya deployment), then you can't get at any of that from SAS directly via saspy because it's only connected to the SAS process in Viya, not all of the other stuff.&lt;/P&gt;
&lt;P&gt;Let me try to figure this out and see what I come up with!&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2024 19:24:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/Query-Regarding-SAS-Kernel-connection-through-https-method-in/m-p/947939#M2640</guid>
      <dc:creator>sastpw</dc:creator>
      <dc:date>2024-10-17T19:24:28Z</dc:date>
    </item>
  </channel>
</rss>

