<?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: What oauth scope is needed to run a serverless function? in Developer Q&amp;A Forum</title>
    <link>https://community.dynatrace.com/t5/Developer-Q-A-Forum/What-oauth-scope-is-needed-to-run-an-app-function/m-p/200345#M81</link>
    <description>&lt;P&gt;as long as you user has the policy&amp;nbsp;app-engine:functions:run and &lt;SPAN&gt;app-engine:apps:run&amp;nbsp;&lt;/SPAN&gt;you should be covered. I never had to any scopes when I wanted to call the functions.&lt;/P&gt;
&lt;P&gt;How do you call your function? do you do it with fetch(&amp;lt;relative url&amp;gt;) or with functions.call(&amp;lt;function name&amp;gt;)&lt;/P&gt;</description>
    <pubDate>Tue, 13 Dec 2022 12:34:43 GMT</pubDate>
    <dc:creator>sinisa_zubic</dc:creator>
    <dc:date>2022-12-13T12:34:43Z</dc:date>
    <item>
      <title>What oauth scope is needed to run an app function?</title>
      <link>https://community.dynatrace.com/t5/Developer-Q-A-Forum/What-oauth-scope-is-needed-to-run-an-app-function/m-p/200332#M80</link>
      <description>&lt;P&gt;I can't find in the documentation the scope needed in the configuration to run an app function. I guess that's a reason why I get 403 in the app when trying to call it?&lt;/P&gt;</description>
      <pubDate>Tue, 02 May 2023 13:46:01 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Developer-Q-A-Forum/What-oauth-scope-is-needed-to-run-an-app-function/m-p/200332#M80</guid>
      <dc:creator>Radoslaw_Szulgo</dc:creator>
      <dc:date>2023-05-02T13:46:01Z</dc:date>
    </item>
    <item>
      <title>Re: What oauth scope is needed to run a serverless function?</title>
      <link>https://community.dynatrace.com/t5/Developer-Q-A-Forum/What-oauth-scope-is-needed-to-run-an-app-function/m-p/200345#M81</link>
      <description>&lt;P&gt;as long as you user has the policy&amp;nbsp;app-engine:functions:run and &lt;SPAN&gt;app-engine:apps:run&amp;nbsp;&lt;/SPAN&gt;you should be covered. I never had to any scopes when I wanted to call the functions.&lt;/P&gt;
&lt;P&gt;How do you call your function? do you do it with fetch(&amp;lt;relative url&amp;gt;) or with functions.call(&amp;lt;function name&amp;gt;)&lt;/P&gt;</description>
      <pubDate>Tue, 13 Dec 2022 12:34:43 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Developer-Q-A-Forum/What-oauth-scope-is-needed-to-run-an-app-function/m-p/200345#M81</guid>
      <dc:creator>sinisa_zubic</dc:creator>
      <dc:date>2022-12-13T12:34:43Z</dc:date>
    </item>
    <item>
      <title>Re: What oauth scope is needed to run an app function?</title>
      <link>https://community.dynatrace.com/t5/Developer-Q-A-Forum/What-oauth-scope-is-needed-to-run-an-app-function/m-p/200362#M82</link>
      <description>&lt;P&gt;Hi Radosław,&lt;/P&gt;
&lt;P&gt;In addition to what Sinisa wrote; apps might require additional scopes that are necessary for them to work properly. Those scopes are defined in &lt;EM&gt;app.config.ts&lt;/EM&gt;. Here's an Automations app example:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2022-12-13 14_56_10-Clipboard.png" style="width: 821px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/8993iED20E843FB975C71/image-size/large?v=v2&amp;amp;px=999" role="button" title="2022-12-13 14_56_10-Clipboard.png" alt="2022-12-13 14_56_10-Clipboard.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;More details about the &lt;EM&gt;scopes&lt;/EM&gt; setting:&amp;nbsp;&lt;A href="https://developer.dynatrace.com/reference/app-toolkit/configuration/#app-options" target="_blank" rel="noopener"&gt;https://developer.dynatrace.com/reference/app-toolkit/configuration/#app-options&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 02 May 2023 13:11:46 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Developer-Q-A-Forum/What-oauth-scope-is-needed-to-run-an-app-function/m-p/200362#M82</guid>
      <dc:creator>michal_zawislak</dc:creator>
      <dc:date>2023-05-02T13:11:46Z</dc:date>
    </item>
    <item>
      <title>Re: What oauth scope is needed to run a serverless function?</title>
      <link>https://community.dynatrace.com/t5/Developer-Q-A-Forum/What-oauth-scope-is-needed-to-run-an-app-function/m-p/200385#M83</link>
      <description>&lt;P&gt;That's what I needed! I had to just add:&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN&gt;app-engine:apps:run&lt;BR /&gt;environment-api:credentials:read&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/38283"&gt;@sinisa_zubic&lt;/a&gt;&amp;nbsp; any plans to add it to the Dynatrace Developer portal?&lt;/P&gt;</description>
      <pubDate>Tue, 13 Dec 2022 18:28:16 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Developer-Q-A-Forum/What-oauth-scope-is-needed-to-run-an-app-function/m-p/200385#M83</guid>
      <dc:creator>Radoslaw_Szulgo</dc:creator>
      <dc:date>2022-12-13T18:28:16Z</dc:date>
    </item>
    <item>
      <title>Re: What oauth scope is needed to run a serverless function?</title>
      <link>https://community.dynatrace.com/t5/Developer-Q-A-Forum/What-oauth-scope-is-needed-to-run-an-app-function/m-p/200388#M84</link>
      <description>&lt;P&gt;it is already in Dynatrace Developer in the SDK documentation. e.g. when you use the getCredentials function you can see the needed scope:&amp;nbsp;&lt;A href="https://developer.dynatrace.com/reference/sdks/client-classic-environment-v2/#getcredentials" target="_blank" rel="noopener"&gt;https://developer.dynatrace.com/reference/sdks/client-classic-environment-v2/#getcredentials&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;also you see for which call you need the app-engine:apps:run scope, e.g. here:&amp;nbsp;&lt;A href="https://developer.dynatrace.com/reference/sdks/client-app-engine-registry/#getapp" target="_blank" rel="noopener"&gt;https://developer.dynatrace.com/reference/sdks/client-app-engine-registry/#getapp&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;There are ideas for improvement, but no timeline&lt;/P&gt;</description>
      <pubDate>Tue, 02 May 2023 13:13:14 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Developer-Q-A-Forum/What-oauth-scope-is-needed-to-run-an-app-function/m-p/200388#M84</guid>
      <dc:creator>sinisa_zubic</dc:creator>
      <dc:date>2023-05-02T13:13:14Z</dc:date>
    </item>
  </channel>
</rss>

