<?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: Store client credentials securely in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Store-client-credentials-securely/m-p/3146358#M41863</link>
    <description>&lt;P&gt;Besides the great option&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/100342"&gt;@lbendlin&lt;/a&gt;&amp;nbsp;mentioned, with an additional API endpoint you could also use the builtin credentials manager&amp;nbsp;&lt;A href="https://community.powerbi.com/t5/Power-Query/How-to-securely-store-and-use-token-and-secret-for-API-request/m-p/3121190#M99878" target="_blank"&gt;https://community.powerbi.com/t5/Power-Query/How-to-securely-store-and-use-token-and-secret-for-API-request/m-p/3121190#M99878&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 22 Mar 2023 05:44:56 GMT</pubDate>
    <dc:creator>ams1</dc:creator>
    <dc:date>2023-03-22T05:44:56Z</dc:date>
    <item>
      <title>Store client credentials securely</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Store-client-credentials-securely/m-p/3142610#M41832</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I am retrieving an access token by calling an API and&amp;nbsp;then use this access token to obtain employee data. I'm&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;using a blank query with the following code.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;    body="grant_type=client_credentials&amp;amp;client_id="&amp;amp;&amp;lt;client_id&amp;gt;&amp;amp;"client_secret="&amp;amp;&amp;lt;client_secret&amp;gt;,
    Source  = Json.Document(Web.Contents(baseUrl,
        [ 
          RelativePath = "oauth/issueToken",
          Headers = [#"Content-Type"="application/x-www-form-urlencoded"],
          Content=Text.ToBinary(body)  
        ]
    )),

    token = Source[access_token],

    data= Json.Document(Web.Contents(baseUrl,
      [ 
        RelativePath = "api/employees",
        Headers = [#"Authorization"="Bearer "&amp;amp;token]
      ]
    )),&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I'm getting access token calling our own API (not using AAD). What is the best way to store these client credentials (client_id and client_secret) instead of hardcoding in the code?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Mar 2023 14:54:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Store-client-credentials-securely/m-p/3142610#M41832</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-03-20T14:54:44Z</dc:date>
    </item>
    <item>
      <title>Re: Store client credentials securely</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Store-client-credentials-securely/m-p/3146083#M41860</link>
      <description>&lt;P&gt;store them in a text file in a sharepoint document library that only you have access to. Then retrieve that file as part of the Power Query transforms etc.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Mar 2023 01:29:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Store-client-credentials-securely/m-p/3146083#M41860</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2023-03-22T01:29:34Z</dc:date>
    </item>
    <item>
      <title>Re: Store client credentials securely</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Store-client-credentials-securely/m-p/3146358#M41863</link>
      <description>&lt;P&gt;Besides the great option&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/100342"&gt;@lbendlin&lt;/a&gt;&amp;nbsp;mentioned, with an additional API endpoint you could also use the builtin credentials manager&amp;nbsp;&lt;A href="https://community.powerbi.com/t5/Power-Query/How-to-securely-store-and-use-token-and-secret-for-API-request/m-p/3121190#M99878" target="_blank"&gt;https://community.powerbi.com/t5/Power-Query/How-to-securely-store-and-use-token-and-secret-for-API-request/m-p/3121190#M99878&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Mar 2023 05:44:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Store-client-credentials-securely/m-p/3146358#M41863</guid>
      <dc:creator>ams1</dc:creator>
      <dc:date>2023-03-22T05:44:56Z</dc:date>
    </item>
  </channel>
</rss>

