<?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: Write Configuration Data from Python SDK in Dev Space</title>
    <link>https://community.alteryx.com/t5/Dev-Space/Write-Configuration-Data-from-Python-SDK/m-p/632114#M1336</link>
    <description>&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately, once you start using the tokens, the original ones become invalid, so if you use them in the engine, the UI ones need to now get re-authed, which invalidates the ones in the engine etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I hear you about not being able to write config from the engine, that is what I have found as well.&amp;nbsp; I am thinking of setting up an online service which both UI and engine can access to manage and persist tokens.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your input.&lt;/P&gt;</description>
    <pubDate>Fri, 11 Sep 2020 06:09:30 GMT</pubDate>
    <dc:creator>rendezz</dc:creator>
    <dc:date>2020-09-11T06:09:30Z</dc:date>
    <item>
      <title>Write Configuration Data from Python SDK</title>
      <link>https://community.alteryx.com/t5/Dev-Space/Write-Configuration-Data-from-Python-SDK/m-p/630958#M1334</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have written an HTML + Python Oauth tool for a platform.&amp;nbsp; I Oauth in the HTML fine and it saves the auth token and refresh token which is made available to the Python.&amp;nbsp; The issue is that once the access token expires, I refresh it.&amp;nbsp; The refreshing brings with it a new refresh token which I have to use for subsequent refreshes.&amp;nbsp; I need to replace the (now defunct) refresh token stored in the config with the new one.&amp;nbsp; How do I write configuration data back to the tool config, or should I persist this elsewhere?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 09 Sep 2020 09:04:07 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Dev-Space/Write-Configuration-Data-from-Python-SDK/m-p/630958#M1334</guid>
      <dc:creator>rendezz</dc:creator>
      <dc:date>2020-09-09T09:04:07Z</dc:date>
    </item>
    <item>
      <title>Re: Write Configuration Data from Python SDK</title>
      <link>https://community.alteryx.com/t5/Dev-Space/Write-Configuration-Data-from-Python-SDK/m-p/631933#M1335</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/193472"&gt;@rendezz&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have you considered keeping all of the token logic on the UI side? I don't believe that we support writing from the engine to the UI at this time-I haven't seen it done.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Tasha&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Sep 2020 19:27:28 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Dev-Space/Write-Configuration-Data-from-Python-SDK/m-p/631933#M1335</guid>
      <dc:creator>TashaA</dc:creator>
      <dc:date>2020-09-10T19:27:28Z</dc:date>
    </item>
    <item>
      <title>Re: Write Configuration Data from Python SDK</title>
      <link>https://community.alteryx.com/t5/Dev-Space/Write-Configuration-Data-from-Python-SDK/m-p/632114#M1336</link>
      <description>&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately, once you start using the tokens, the original ones become invalid, so if you use them in the engine, the UI ones need to now get re-authed, which invalidates the ones in the engine etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I hear you about not being able to write config from the engine, that is what I have found as well.&amp;nbsp; I am thinking of setting up an online service which both UI and engine can access to manage and persist tokens.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your input.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Sep 2020 06:09:30 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Dev-Space/Write-Configuration-Data-from-Python-SDK/m-p/632114#M1336</guid>
      <dc:creator>rendezz</dc:creator>
      <dc:date>2020-09-11T06:09:30Z</dc:date>
    </item>
    <item>
      <title>Re: Write Configuration Data from Python SDK</title>
      <link>https://community.alteryx.com/t5/Dev-Space/Write-Configuration-Data-from-Python-SDK/m-p/633240#M1338</link>
      <description>&lt;P&gt;You can update the config XML of the tool from the backend by doing:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class="line"&gt;&lt;SPAN class="n"&gt;engine&lt;/SPAN&gt;&lt;SPAN class="p"&gt;.&lt;/SPAN&gt;&lt;SPAN class="n"&gt;output_message&lt;/SPAN&gt;&lt;SPAN class="p"&gt;(&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;SPAN class="line"&gt;    &lt;SPAN class="n"&gt;tool_id&lt;/SPAN&gt;&lt;SPAN class="p"&gt;,&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;SPAN class="line"&gt;    &lt;SPAN class="n"&gt;Sdk&lt;/SPAN&gt;&lt;SPAN class="p"&gt;.&lt;/SPAN&gt;&lt;SPAN class="n"&gt;Status&lt;/SPAN&gt;&lt;SPAN class="p"&gt;.&lt;/SPAN&gt;&lt;SPAN class="n"&gt;update_output_config_xml&lt;/SPAN&gt;&lt;SPAN class="p"&gt;,&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;SPAN class="line"&gt;    updated_xml_string&lt;SPAN class="p"&gt;,&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;SPAN class="line"&gt;&lt;SPAN class="p"&gt;)&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;/PRE&gt;</description>
      <pubDate>Mon, 14 Sep 2020 16:10:11 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Dev-Space/Write-Configuration-Data-from-Python-SDK/m-p/633240#M1338</guid>
      <dc:creator>DrewE</dc:creator>
      <dc:date>2020-09-14T16:10:11Z</dc:date>
    </item>
    <item>
      <title>Re: Write Configuration Data from Python SDK</title>
      <link>https://community.alteryx.com/t5/Dev-Space/Write-Configuration-Data-from-Python-SDK/m-p/633714#M1339</link>
      <description>&lt;P&gt;Thank you, I will go ahead and try this.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Sep 2020 11:28:02 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Dev-Space/Write-Configuration-Data-from-Python-SDK/m-p/633714#M1339</guid>
      <dc:creator>rendezz</dc:creator>
      <dc:date>2020-09-15T11:28:02Z</dc:date>
    </item>
  </channel>
</rss>

