<?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/insert API tokens for automatic refresh with Python in Report Server</title>
    <link>https://community.fabric.microsoft.com/t5/Report-Server/Store-insert-API-tokens-for-automatic-refresh-with-Python/m-p/1090425#M14218</link>
    <description>&lt;P&gt;Should be fine, you could store the json files some place that the gateway could access them or even in Azure blob storage if you want to be fancy.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Python is &lt;A href="https://community.powerbi.com/t5/Community-Blog/Part-2-Reflections-on-Excel-to-DAX-Translation/ba-p/1088998" target="_self"&gt;my new favorite programming language&lt;/A&gt;! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 14 May 2020 21:40:23 GMT</pubDate>
    <dc:creator>Greg_Deckler</dc:creator>
    <dc:date>2020-05-14T21:40:23Z</dc:date>
    <item>
      <title>Store/insert API tokens for automatic refresh with Python</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Store-insert-API-tokens-for-automatic-refresh-with-Python/m-p/1090383#M14217</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have written some Python to pull data back from an API using access tokens that need refresh tokens after so long.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This works fine running locally on my machine with the tokens stored in json files where the Power BI Desktop file is stored, but I'm wondering how I might automate this so I can refresh everyday within PowerBI instead.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My main concern is how to store credentials securely, as opposed to hard coding anything into the Python script.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions? I have never used the gateway connections or anything, so not sure how they really work, or if they'd work, but wondering what the options are.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Benji&lt;/P&gt;</description>
      <pubDate>Thu, 14 May 2020 20:59:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Store-insert-API-tokens-for-automatic-refresh-with-Python/m-p/1090383#M14217</guid>
      <dc:creator>benjikj_mcsp</dc:creator>
      <dc:date>2020-05-14T20:59:36Z</dc:date>
    </item>
    <item>
      <title>Re: Store/insert API tokens for automatic refresh with Python</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Store-insert-API-tokens-for-automatic-refresh-with-Python/m-p/1090425#M14218</link>
      <description>&lt;P&gt;Should be fine, you could store the json files some place that the gateway could access them or even in Azure blob storage if you want to be fancy.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Python is &lt;A href="https://community.powerbi.com/t5/Community-Blog/Part-2-Reflections-on-Excel-to-DAX-Translation/ba-p/1088998" target="_self"&gt;my new favorite programming language&lt;/A&gt;! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 14 May 2020 21:40:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Store-insert-API-tokens-for-automatic-refresh-with-Python/m-p/1090425#M14218</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2020-05-14T21:40:23Z</dc:date>
    </item>
    <item>
      <title>Re: Store/insert API tokens for automatic refresh with Python</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Store-insert-API-tokens-for-automatic-refresh-with-Python/m-p/1091152#M14225</link>
      <description>&lt;P&gt;But do I have to use a Gateway?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With any blob storage, or AWS/S3 or anything, wouldn't I need to store the credentials for that access somewhere, not hardcoded, to make it secure?&lt;/P&gt;</description>
      <pubDate>Fri, 15 May 2020 08:33:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Store-insert-API-tokens-for-automatic-refresh-with-Python/m-p/1091152#M14225</guid>
      <dc:creator>benjikj_mcsp</dc:creator>
      <dc:date>2020-05-15T08:33:24Z</dc:date>
    </item>
    <item>
      <title>Re: Store/insert API tokens for automatic refresh with Python</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Store-insert-API-tokens-for-automatic-refresh-with-Python/m-p/2043016#M20727</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="219035" data-lia-user-login="benjikj_mcsp" class="lia-mention lia-mention-user"&gt;benjikj_mcsp&lt;/a&gt;Can you share this python script, I am struggling with this problem at the moment.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Aug 2021 13:49:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Store-insert-API-tokens-for-automatic-refresh-with-Python/m-p/2043016#M20727</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-08-27T13:49:18Z</dc:date>
    </item>
  </channel>
</rss>

