<?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: API Authentication in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/api-authentication/m-p/4139#M939</link>
    <description>&lt;P&gt;Hi Venkat, that sounds like a good idea. Thanks&lt;/P&gt;</description>
    <pubDate>Tue, 23 May 2023 12:55:32 GMT</pubDate>
    <dc:creator>Ismail1</dc:creator>
    <dc:date>2023-05-23T12:55:32Z</dc:date>
    <item>
      <title>API Authentication</title>
      <link>https://community.databricks.com/t5/data-engineering/api-authentication/m-p/4137#M937</link>
      <description>&lt;P&gt;I am trying to run some API calls to the account console. I tried with every syntax possible encoded and decoded to get the call successfully but it returns a "user not authenticated" error. But when I tried with the Account admin it worked. I need to know whether not having password authentication with normal users on the account console is what's causing this issue.&lt;/P&gt;</description>
      <pubDate>Fri, 19 May 2023 18:40:12 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/api-authentication/m-p/4137#M937</guid>
      <dc:creator>Ismail1</dc:creator>
      <dc:date>2023-05-19T18:40:12Z</dc:date>
    </item>
    <item>
      <title>Re: API Authentication</title>
      <link>https://community.databricks.com/t5/data-engineering/api-authentication/m-p/4138#M938</link>
      <description>&lt;P&gt;We use Token generated in Account console to make REST API calls. you can try this work around if your use case allows to use token instead of userid/password. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is an example in python.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;user_json = {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;"schemas": [ "urn:ietf:params:scim:schemas:core:2.0:User" ],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;"userName": f"{username}",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;"name": {'familyName': f'{last_name}', 'givenName': f'{first_name}'}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;headers = { "Authorization": f"Bearer {&lt;B&gt;token&lt;/B&gt;}"}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;url = 'https://accounts.cloud.databricks.com/api/2.0/accounts/&amp;lt;account_id&amp;gt;/scim/v2/Users'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;result = requests.post(url, headers=headers, data=json.dumps(user_json))&lt;/P&gt;</description>
      <pubDate>Mon, 22 May 2023 18:35:50 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/api-authentication/m-p/4138#M938</guid>
      <dc:creator>venkatcrc</dc:creator>
      <dc:date>2023-05-22T18:35:50Z</dc:date>
    </item>
    <item>
      <title>Re: API Authentication</title>
      <link>https://community.databricks.com/t5/data-engineering/api-authentication/m-p/4139#M939</link>
      <description>&lt;P&gt;Hi Venkat, that sounds like a good idea. Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2023 12:55:32 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/api-authentication/m-p/4139#M939</guid>
      <dc:creator>Ismail1</dc:creator>
      <dc:date>2023-05-23T12:55:32Z</dc:date>
    </item>
  </channel>
</rss>

