<?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: How to enable / setup OAuth for DBT with Databricks in Administration &amp; Architecture</title>
    <link>https://community.databricks.com/t5/administration-architecture/how-to-enable-setup-oauth-for-dbt-with-databricks/m-p/117408#M3314</link>
    <description>&lt;P&gt;Here are some things to consider:&lt;/P&gt;
&lt;H3&gt;Debugging and Setting Up OAuth Authentication with dbt and Databricks&lt;/H3&gt;
&lt;DIV class="paragraph"&gt;Steps to Analyze and Setup Authentication: 1. &lt;STRONG&gt;Verify Credentials and Configuration&lt;/STRONG&gt;: - Double-check the &lt;CODE&gt;auth_type: oauth&lt;/CODE&gt; is correctly specified, as well as the client ID. Ensure these are properly formatted. - Ensure sensitive information like secrets and tokens are set as environment variables instead of being hardcoded in the &lt;CODE&gt;profiles.yml&lt;/CODE&gt;.&lt;/DIV&gt;
&lt;OL start="2"&gt;
&lt;LI&gt;
&lt;DIV class="paragraph"&gt;&lt;STRONG&gt;Using OAuth Tokens&lt;/STRONG&gt;:
&lt;UL&gt;
&lt;LI&gt;Databricks recommends using OAuth tokens as the secure method for authentication.&lt;/LI&gt;
&lt;LI&gt;Confirm that your Databricks instance has OAuth enabled as specified in the documentation.&lt;/LI&gt;
&lt;/UL&gt;
&lt;/DIV&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV class="paragraph"&gt;&lt;STRONG&gt;dbt init Dialog&lt;/STRONG&gt;:
&lt;UL&gt;
&lt;LI&gt;If the &lt;CODE&gt;use oauth&lt;/CODE&gt; option is not displayed in the &lt;CODE&gt;dbt init&lt;/CODE&gt; dialog, it could indicate that either the version of &lt;CODE&gt;dbt-databricks&lt;/CODE&gt; is outdated or that the OAuth setup on Databricks is incomplete.&lt;/LI&gt;
&lt;LI&gt;Ensure you are using &lt;STRONG&gt;dbt-databricks version 1.8.0 or greater&lt;/STRONG&gt; as recommended.&lt;/LI&gt;
&lt;/UL&gt;
&lt;/DIV&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV class="paragraph"&gt;&lt;STRONG&gt;Testing Connection&lt;/STRONG&gt;:
&lt;UL&gt;
&lt;LI&gt;Use the &lt;CODE&gt;dbt debug&lt;/CODE&gt; command to confirm that the connection details are correct and the profiles file is valid.&lt;/LI&gt;
&lt;LI&gt;For debugging errors related to authentication, the console output during &lt;CODE&gt;dbt debug&lt;/CODE&gt; will provide insights.&lt;/LI&gt;
&lt;/UL&gt;
&lt;/DIV&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV class="paragraph"&gt;&lt;STRONG&gt;Environment and Prerequisites&lt;/STRONG&gt;:
&lt;UL&gt;
&lt;LI&gt;Confirm Python 3.7+ is installed along with utilities like &lt;CODE&gt;pipenv&lt;/CODE&gt; for virtual environments.&lt;/LI&gt;
&lt;LI&gt;Ensure correct &lt;CODE&gt;host&lt;/CODE&gt; and &lt;CODE&gt;http_path&lt;/CODE&gt; settings in the &lt;CODE&gt;profiles.yml&lt;/CODE&gt; file, derived from your Databricks workspace (Compute or SQL Warehouse settings).&lt;/LI&gt;
&lt;/UL&gt;
&lt;/DIV&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV class="paragraph"&gt;&lt;STRONG&gt;External Tutorials&lt;/STRONG&gt;:
&lt;UL&gt;
&lt;LI&gt;The community tutorial you referenced might contain additional steps specific to Azure Databricks. However, since we cannot access its content, ensure your setup aligns with the generic Databricks OAuth process outlined in the Databricks documentation.&lt;/LI&gt;
&lt;/UL&gt;
&lt;/DIV&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;DIV class="paragraph"&gt;Additional Tips: - If you are still unable to authenticate, check the compatibility between your dbt-databricks package and your Databricks workspace. - For further guidance, consult the &lt;A href="https://docs.databricks.com/aws/en/partners/prep/dbt" target="_blank"&gt;Connect to dbt Core Databricks documentation&lt;/A&gt;.&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="paragraph"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="paragraph"&gt;Hope this helps, Big Roux.&lt;/DIV&gt;
&lt;DIV class="paragraph"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
    <pubDate>Thu, 01 May 2025 15:36:27 GMT</pubDate>
    <dc:creator>Louis_Frolio</dc:creator>
    <dc:date>2025-05-01T15:36:27Z</dc:date>
    <item>
      <title>How to enable / setup OAuth for DBT with Databricks</title>
      <link>https://community.databricks.com/t5/administration-architecture/how-to-enable-setup-oauth-for-dbt-with-databricks/m-p/117363#M3312</link>
      <description>&lt;P&gt;I tried configure / setup DBT to authenticate with OAuth to Databricks, following the tutorials&amp;nbsp;&lt;A href="https://community.databricks.com/t5/technical-blog/using-dbt-core-with-oauth-on-azure-databricks/ba-p/46605" target="_blank"&gt;https://community.databricks.com/t5/technical-blog/using-dbt-core-with-oauth-on-azure-databricks/ba-p/46605&lt;/A&gt;&amp;nbsp;and&amp;nbsp;&lt;A href="https://docs.databricks.com/aws/en/partners/prep/dbt" target="_blank"&gt;https://docs.databricks.com/aws/en/partners/prep/dbt&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But unfortunately `use oauth` was not offered as option in the dbt init dialog - unlike in the tutorial.&lt;BR /&gt;Also adding the authentication "&lt;/P&gt;&lt;PRE&gt;auth_type: oauth&lt;/PRE&gt;&lt;PRE&gt;client_id: "9729e77e-ba94-4d53-8cfb-bb609f43f881"&lt;/PRE&gt;&lt;P&gt;Did not work.&lt;/P&gt;&lt;P&gt;How to debug / analyze / setup to authenticate with OAuth&lt;/P&gt;</description>
      <pubDate>Thu, 01 May 2025 09:43:30 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/how-to-enable-setup-oauth-for-dbt-with-databricks/m-p/117363#M3312</guid>
      <dc:creator>Th0rs7en</dc:creator>
      <dc:date>2025-05-01T09:43:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to enable / setup OAuth for DBT with Databricks</title>
      <link>https://community.databricks.com/t5/administration-architecture/how-to-enable-setup-oauth-for-dbt-with-databricks/m-p/117408#M3314</link>
      <description>&lt;P&gt;Here are some things to consider:&lt;/P&gt;
&lt;H3&gt;Debugging and Setting Up OAuth Authentication with dbt and Databricks&lt;/H3&gt;
&lt;DIV class="paragraph"&gt;Steps to Analyze and Setup Authentication: 1. &lt;STRONG&gt;Verify Credentials and Configuration&lt;/STRONG&gt;: - Double-check the &lt;CODE&gt;auth_type: oauth&lt;/CODE&gt; is correctly specified, as well as the client ID. Ensure these are properly formatted. - Ensure sensitive information like secrets and tokens are set as environment variables instead of being hardcoded in the &lt;CODE&gt;profiles.yml&lt;/CODE&gt;.&lt;/DIV&gt;
&lt;OL start="2"&gt;
&lt;LI&gt;
&lt;DIV class="paragraph"&gt;&lt;STRONG&gt;Using OAuth Tokens&lt;/STRONG&gt;:
&lt;UL&gt;
&lt;LI&gt;Databricks recommends using OAuth tokens as the secure method for authentication.&lt;/LI&gt;
&lt;LI&gt;Confirm that your Databricks instance has OAuth enabled as specified in the documentation.&lt;/LI&gt;
&lt;/UL&gt;
&lt;/DIV&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV class="paragraph"&gt;&lt;STRONG&gt;dbt init Dialog&lt;/STRONG&gt;:
&lt;UL&gt;
&lt;LI&gt;If the &lt;CODE&gt;use oauth&lt;/CODE&gt; option is not displayed in the &lt;CODE&gt;dbt init&lt;/CODE&gt; dialog, it could indicate that either the version of &lt;CODE&gt;dbt-databricks&lt;/CODE&gt; is outdated or that the OAuth setup on Databricks is incomplete.&lt;/LI&gt;
&lt;LI&gt;Ensure you are using &lt;STRONG&gt;dbt-databricks version 1.8.0 or greater&lt;/STRONG&gt; as recommended.&lt;/LI&gt;
&lt;/UL&gt;
&lt;/DIV&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV class="paragraph"&gt;&lt;STRONG&gt;Testing Connection&lt;/STRONG&gt;:
&lt;UL&gt;
&lt;LI&gt;Use the &lt;CODE&gt;dbt debug&lt;/CODE&gt; command to confirm that the connection details are correct and the profiles file is valid.&lt;/LI&gt;
&lt;LI&gt;For debugging errors related to authentication, the console output during &lt;CODE&gt;dbt debug&lt;/CODE&gt; will provide insights.&lt;/LI&gt;
&lt;/UL&gt;
&lt;/DIV&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV class="paragraph"&gt;&lt;STRONG&gt;Environment and Prerequisites&lt;/STRONG&gt;:
&lt;UL&gt;
&lt;LI&gt;Confirm Python 3.7+ is installed along with utilities like &lt;CODE&gt;pipenv&lt;/CODE&gt; for virtual environments.&lt;/LI&gt;
&lt;LI&gt;Ensure correct &lt;CODE&gt;host&lt;/CODE&gt; and &lt;CODE&gt;http_path&lt;/CODE&gt; settings in the &lt;CODE&gt;profiles.yml&lt;/CODE&gt; file, derived from your Databricks workspace (Compute or SQL Warehouse settings).&lt;/LI&gt;
&lt;/UL&gt;
&lt;/DIV&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV class="paragraph"&gt;&lt;STRONG&gt;External Tutorials&lt;/STRONG&gt;:
&lt;UL&gt;
&lt;LI&gt;The community tutorial you referenced might contain additional steps specific to Azure Databricks. However, since we cannot access its content, ensure your setup aligns with the generic Databricks OAuth process outlined in the Databricks documentation.&lt;/LI&gt;
&lt;/UL&gt;
&lt;/DIV&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;DIV class="paragraph"&gt;Additional Tips: - If you are still unable to authenticate, check the compatibility between your dbt-databricks package and your Databricks workspace. - For further guidance, consult the &lt;A href="https://docs.databricks.com/aws/en/partners/prep/dbt" target="_blank"&gt;Connect to dbt Core Databricks documentation&lt;/A&gt;.&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="paragraph"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="paragraph"&gt;Hope this helps, Big Roux.&lt;/DIV&gt;
&lt;DIV class="paragraph"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Thu, 01 May 2025 15:36:27 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/how-to-enable-setup-oauth-for-dbt-with-databricks/m-p/117408#M3314</guid>
      <dc:creator>Louis_Frolio</dc:creator>
      <dc:date>2025-05-01T15:36:27Z</dc:date>
    </item>
  </channel>
</rss>

