<?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: Passing the secret scope to the url in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/passing-the-secret-scope-to-the-url/m-p/10614#M5768</link>
    <description>&lt;P&gt;I'm able to print the credentials and they are correct.&lt;/P&gt;</description>
    <pubDate>Thu, 26 Jan 2023 17:59:07 GMT</pubDate>
    <dc:creator>SrinMand_34861</dc:creator>
    <dc:date>2023-01-26T17:59:07Z</dc:date>
    <item>
      <title>Passing the secret scope to the url</title>
      <link>https://community.databricks.com/t5/data-engineering/passing-the-secret-scope-to-the-url/m-p/10610#M5764</link>
      <description>&lt;P&gt;We are trying to call an URL by using the credentials, &lt;/P&gt;&lt;P&gt;we are able to get the data when we hard code the credentials.&lt;/P&gt;&lt;P&gt;Not returning any data when we pass the secret scope credentials.&lt;/P&gt;&lt;P&gt;below is the code.&lt;/P&gt;&lt;P&gt;&lt;B&gt;import requests&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;source_db_scope = "dev-hnd-secret-scope"&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;source_user_name_secret = "username"&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;source_password_secret = "password"&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;username = dbutils.secrets.get(scope = source_db_scope, key = source_user_name_secret)&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;password = dbutils.secrets.get(scope = source_db_scope, key = source_password_secret)&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;url = "http://abc.com:8000/scheduler_etl.xsjs"&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;response = requests.get(url,auth=(username ,password ))&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please suggest. Appreciate your help&lt;/P&gt;&lt;P&gt;&lt;B&gt;Thanks&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;Srini&lt;/B&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2023 17:29:16 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/passing-the-secret-scope-to-the-url/m-p/10610#M5764</guid>
      <dc:creator>SrinMand_34861</dc:creator>
      <dc:date>2023-01-26T17:29:16Z</dc:date>
    </item>
    <item>
      <title>Re: Passing the secret scope to the url</title>
      <link>https://community.databricks.com/t5/data-engineering/passing-the-secret-scope-to-the-url/m-p/10611#M5765</link>
      <description>&lt;P&gt;please try to debug what secret scope is returning. The ugly way to do it is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for letter in username:&lt;/P&gt;&lt;P&gt;  print(letter, ' ')&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2023 17:41:08 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/passing-the-secret-scope-to-the-url/m-p/10611#M5765</guid>
      <dc:creator>Hubert-Dudek</dc:creator>
      <dc:date>2023-01-26T17:41:08Z</dc:date>
    </item>
    <item>
      <title>Re: Passing the secret scope to the url</title>
      <link>https://community.databricks.com/t5/data-engineering/passing-the-secret-scope-to-the-url/m-p/10612#M5766</link>
      <description>&lt;P&gt;Secret scope masks the value and returns [Redacted] for both username and password.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2023 17:44:24 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/passing-the-secret-scope-to-the-url/m-p/10612#M5766</guid>
      <dc:creator>SrinMand_34861</dc:creator>
      <dc:date>2023-01-26T17:44:24Z</dc:date>
    </item>
    <item>
      <title>Re: Passing the secret scope to the url</title>
      <link>https://community.databricks.com/t5/data-engineering/passing-the-secret-scope-to-the-url/m-p/10613#M5767</link>
      <description>&lt;P&gt;try&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;for letter in username:
    print(letter, end=" "')
    print("\n")&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2023 17:46:34 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/passing-the-secret-scope-to-the-url/m-p/10613#M5767</guid>
      <dc:creator>Hubert-Dudek</dc:creator>
      <dc:date>2023-01-26T17:46:34Z</dc:date>
    </item>
    <item>
      <title>Re: Passing the secret scope to the url</title>
      <link>https://community.databricks.com/t5/data-engineering/passing-the-secret-scope-to-the-url/m-p/10614#M5768</link>
      <description>&lt;P&gt;I'm able to print the credentials and they are correct.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2023 17:59:07 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/passing-the-secret-scope-to-the-url/m-p/10614#M5768</guid>
      <dc:creator>SrinMand_34861</dc:creator>
      <dc:date>2023-01-26T17:59:07Z</dc:date>
    </item>
  </channel>
</rss>

