<?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: Native service principal support in JDBC/ODBC drivers in Administration &amp; Architecture</title>
    <link>https://community.databricks.com/t5/administration-architecture/native-service-principal-support-in-jdbc-odbc-drivers/m-p/67003#M1090</link>
    <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/83912"&gt;@harripy&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As it says in the documentation,&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;JDBC driver 2.6.36 and above supports Azure Databricks OAuth secrets for OAuth M2M or OAuth 2.0 client credentials authentication. Microsoft Entra ID secrets are not supported.&lt;/LI-CODE&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/azure/databricks/integrations/jdbc/authentication#--oauth-machine-to-machine-m2m-authentication" target="_blank"&gt;https://learn.microsoft.com/en-us/azure/databricks/integrations/jdbc/authentication#--oauth-machine-to-machine-m2m-authentication&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 23 Apr 2024 06:49:03 GMT</pubDate>
    <dc:creator>daniel_sahal</dc:creator>
    <dc:date>2024-04-23T06:49:03Z</dc:date>
    <item>
      <title>Native service principal support in JDBC/ODBC drivers</title>
      <link>https://community.databricks.com/t5/administration-architecture/native-service-principal-support-in-jdbc-odbc-drivers/m-p/67000#M1088</link>
      <description>&lt;P&gt;Read from Databricks integration best practises about the native support for Service Principal authentication on JDBC/ODBC drivers. The timetable mentioned for this was "expected to land in 2023", is this referring to the&amp;nbsp;&lt;A href="https://docs.databricks.com/en/integrations/jdbc/authentication.html#oauth-machine-to-machine-m2m-authentication" target="_blank" rel="noopener"&gt;https://docs.databricks.com/en/integrations/jdbc/authentication.html#oauth-machine-to-machine-m2m-authentication&lt;/A&gt;&amp;nbsp;- section of the authentication documentation?&lt;BR /&gt;The example shows parameters:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;String&lt;/SPAN&gt; &lt;SPAN class=""&gt;url&lt;/SPAN&gt; &lt;SPAN class=""&gt;=&lt;/SPAN&gt; &lt;SPAN class=""&gt;"jdbc:databricks://&amp;lt;server-hostname&amp;gt;:443"&lt;/SPAN&gt;&lt;SPAN class=""&gt;;&lt;/SPAN&gt;
&lt;SPAN class=""&gt;Properties&lt;/SPAN&gt; &lt;SPAN class=""&gt;p&lt;/SPAN&gt; &lt;SPAN class=""&gt;=&lt;/SPAN&gt; &lt;SPAN class=""&gt;new&lt;/SPAN&gt; &lt;SPAN class=""&gt;java&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;util&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;Properties&lt;/SPAN&gt;&lt;SPAN class=""&gt;();&lt;/SPAN&gt;
&lt;SPAN class=""&gt;p&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;put&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;"httpPath"&lt;/SPAN&gt;&lt;SPAN class=""&gt;,&lt;/SPAN&gt; &lt;SPAN class=""&gt;"&amp;lt;http-path&amp;gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;);&lt;/SPAN&gt;
&lt;SPAN class=""&gt;p&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;put&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;"AuthMech"&lt;/SPAN&gt;&lt;SPAN class=""&gt;,&lt;/SPAN&gt; &lt;SPAN class=""&gt;"11"&lt;/SPAN&gt;&lt;SPAN class=""&gt;);&lt;/SPAN&gt;
&lt;SPAN class=""&gt;p&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;put&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;"Auth_Flow"&lt;/SPAN&gt;&lt;SPAN class=""&gt;,&lt;/SPAN&gt; &lt;SPAN class=""&gt;"1"&lt;/SPAN&gt;&lt;SPAN class=""&gt;);&lt;/SPAN&gt;
&lt;SPAN class=""&gt;p&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;put&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;"OAuth2ClientId"&lt;/SPAN&gt;&lt;SPAN class=""&gt;,&lt;/SPAN&gt; &lt;SPAN class=""&gt;"&amp;lt;service-principal-application-id&amp;gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;);&lt;/SPAN&gt;
&lt;SPAN class=""&gt;p&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;put&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;"OAuth2Secret"&lt;/SPAN&gt;&lt;SPAN class=""&gt;,&lt;/SPAN&gt; &lt;SPAN class=""&gt;"&amp;lt;service-principal-oauth-secret&amp;gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;);&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;So assumably this works with Databricks Service Principals (on AWS), but does this function also in Azure with EntraID Service Principals? (at least the Tenant ID should be somehow provided still)&lt;/P&gt;</description>
      <pubDate>Tue, 23 Apr 2024 06:41:09 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/native-service-principal-support-in-jdbc-odbc-drivers/m-p/67000#M1088</guid>
      <dc:creator>harripy</dc:creator>
      <dc:date>2024-04-23T06:41:09Z</dc:date>
    </item>
    <item>
      <title>Re: Native service principal support in JDBC/ODBC drivers</title>
      <link>https://community.databricks.com/t5/administration-architecture/native-service-principal-support-in-jdbc-odbc-drivers/m-p/67003#M1090</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/83912"&gt;@harripy&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As it says in the documentation,&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;JDBC driver 2.6.36 and above supports Azure Databricks OAuth secrets for OAuth M2M or OAuth 2.0 client credentials authentication. Microsoft Entra ID secrets are not supported.&lt;/LI-CODE&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/azure/databricks/integrations/jdbc/authentication#--oauth-machine-to-machine-m2m-authentication" target="_blank"&gt;https://learn.microsoft.com/en-us/azure/databricks/integrations/jdbc/authentication#--oauth-machine-to-machine-m2m-authentication&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Apr 2024 06:49:03 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/native-service-principal-support-in-jdbc-odbc-drivers/m-p/67003#M1090</guid>
      <dc:creator>daniel_sahal</dc:creator>
      <dc:date>2024-04-23T06:49:03Z</dc:date>
    </item>
    <item>
      <title>Re: Native service principal support in JDBC/ODBC drivers</title>
      <link>https://community.databricks.com/t5/administration-architecture/native-service-principal-support-in-jdbc-odbc-drivers/m-p/67067#M1097</link>
      <description>&lt;P&gt;Thanks for pointing this out, so indeed the OAuth M2M should be executed only with Databricks Service Principals.&lt;/P&gt;&lt;P&gt;Interestingly, I found out that on Azure Databricks SQL Warehouse Permissions can not be set (at least not through GUI) for a Databricks Service Principal (the SP can not be found on the Permissions menu), so this rules out this possibility to utilise this connection method as "Can Use/Can Manage" permissions can not be given for the Databricks SP. Or is there another way to provide this?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Apr 2024 13:44:50 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/native-service-principal-support-in-jdbc-odbc-drivers/m-p/67067#M1097</guid>
      <dc:creator>harripy</dc:creator>
      <dc:date>2024-04-23T13:44:50Z</dc:date>
    </item>
  </channel>
</rss>

