<?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 Connecting SAS to Snowflake via ODBC using SSO from external browser in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/Connecting-SAS-to-Snowflake-via-ODBC-using-SSO-from-external/m-p/967405#M21049</link>
    <description>&lt;P&gt;I am trying to use SAS ODBC to connect to my company's Snowflake account using SSO via an external browser. I was able to connect it with a macro and the User / Password as seen below:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%macro libname_snowflake(&lt;BR /&gt;connName /* Choose the local DB name */&lt;BR /&gt;,schema /* Choose the Oracle-like schema (owner) name */&lt;BR /&gt;);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;/* This should minimize code rewrites with schema alias. */&lt;/P&gt;
&lt;P&gt;%if &amp;amp;schema. = CS %then %do;&lt;BR /&gt;%let db=PUB_DATA;&lt;BR /&gt;%end;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;* This presumes all schemas will begin with string PUB */&lt;/P&gt;
&lt;P&gt;%else %if %substr(&amp;amp;schema., 1, 3) = PUB %then %do;&lt;BR /&gt;%let db=&amp;amp;schema.;&lt;BR /&gt;%end;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;libname &amp;amp;connName. SNOW server="&amp;lt;MyCompany&amp;gt;.snowflakecomputing.com"&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;user=MyUserName&lt;BR /&gt;&amp;nbsp; &amp;nbsp; pw="***************************"&lt;BR /&gt;&amp;nbsp; &amp;nbsp; DATABASE=&amp;amp;db.&lt;BR /&gt;warehouse=REPORTING&lt;BR /&gt;schema=DATA_VENDING&lt;BR /&gt;role=MyRole&lt;BR /&gt;readbuff=1024&lt;BR /&gt;insertbuff=1024&lt;BR /&gt;dbcommit=0&lt;BR /&gt;TRACE=YES&lt;BR /&gt;SQLGENERATION=DBMS&lt;BR /&gt;conopts='sslmode=required'&lt;/P&gt;
&lt;P&gt;;&lt;/P&gt;
&lt;P&gt;%mend libname_snowflake;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have seen on the web and the SAS support communities where I can modify the authentication segment to use the SSO with an external browser like below:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;CONOPTS=('authenticator=EXTERNALBROWSER', 'URL=&amp;lt;your_sso_url&amp;gt;')&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Has anyone successfully implemented this in SAS 9.4 X64 WIND PRO platform? Please, point me in the right direction. Thanks for the support.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 26 May 2025 06:28:33 GMT</pubDate>
    <dc:creator>PooryaShidfar</dc:creator>
    <dc:date>2025-05-26T06:28:33Z</dc:date>
    <item>
      <title>Connecting SAS to Snowflake via ODBC using SSO from external browser</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Connecting-SAS-to-Snowflake-via-ODBC-using-SSO-from-external/m-p/967405#M21049</link>
      <description>&lt;P&gt;I am trying to use SAS ODBC to connect to my company's Snowflake account using SSO via an external browser. I was able to connect it with a macro and the User / Password as seen below:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%macro libname_snowflake(&lt;BR /&gt;connName /* Choose the local DB name */&lt;BR /&gt;,schema /* Choose the Oracle-like schema (owner) name */&lt;BR /&gt;);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;/* This should minimize code rewrites with schema alias. */&lt;/P&gt;
&lt;P&gt;%if &amp;amp;schema. = CS %then %do;&lt;BR /&gt;%let db=PUB_DATA;&lt;BR /&gt;%end;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;* This presumes all schemas will begin with string PUB */&lt;/P&gt;
&lt;P&gt;%else %if %substr(&amp;amp;schema., 1, 3) = PUB %then %do;&lt;BR /&gt;%let db=&amp;amp;schema.;&lt;BR /&gt;%end;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;libname &amp;amp;connName. SNOW server="&amp;lt;MyCompany&amp;gt;.snowflakecomputing.com"&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;user=MyUserName&lt;BR /&gt;&amp;nbsp; &amp;nbsp; pw="***************************"&lt;BR /&gt;&amp;nbsp; &amp;nbsp; DATABASE=&amp;amp;db.&lt;BR /&gt;warehouse=REPORTING&lt;BR /&gt;schema=DATA_VENDING&lt;BR /&gt;role=MyRole&lt;BR /&gt;readbuff=1024&lt;BR /&gt;insertbuff=1024&lt;BR /&gt;dbcommit=0&lt;BR /&gt;TRACE=YES&lt;BR /&gt;SQLGENERATION=DBMS&lt;BR /&gt;conopts='sslmode=required'&lt;/P&gt;
&lt;P&gt;;&lt;/P&gt;
&lt;P&gt;%mend libname_snowflake;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have seen on the web and the SAS support communities where I can modify the authentication segment to use the SSO with an external browser like below:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;CONOPTS=('authenticator=EXTERNALBROWSER', 'URL=&amp;lt;your_sso_url&amp;gt;')&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Has anyone successfully implemented this in SAS 9.4 X64 WIND PRO platform? Please, point me in the right direction. Thanks for the support.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 May 2025 06:28:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Connecting-SAS-to-Snowflake-via-ODBC-using-SSO-from-external/m-p/967405#M21049</guid>
      <dc:creator>PooryaShidfar</dc:creator>
      <dc:date>2025-05-26T06:28:33Z</dc:date>
    </item>
  </channel>
</rss>

