<?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 How to get current appId from within a widget? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-get-current-appid-from-within-a-widget/m-p/1216062#M78823</link>
    <description>&lt;P&gt;I am building a WAB widget and want to authenticate from within the widget. I have got it working using the&amp;nbsp;&lt;SPAN&gt;&lt;SPAN&gt;OAuthInfo,&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;IdentityManager and Portal objects - but the appId is currently hardcoded to the WAB develpment app that I had set up on our Enterprise portal. The widget is expected to be added to various apps so I need to be able to get the appId from the widget's parent/current app. How do I do this?&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 26 Sep 2022 14:26:27 GMT</pubDate>
    <dc:creator>ViktorSafar</dc:creator>
    <dc:date>2022-09-26T14:26:27Z</dc:date>
    <item>
      <title>How to get current appId from within a widget?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-get-current-appid-from-within-a-widget/m-p/1216062#M78823</link>
      <description>&lt;P&gt;I am building a WAB widget and want to authenticate from within the widget. I have got it working using the&amp;nbsp;&lt;SPAN&gt;&lt;SPAN&gt;OAuthInfo,&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;IdentityManager and Portal objects - but the appId is currently hardcoded to the WAB develpment app that I had set up on our Enterprise portal. The widget is expected to be added to various apps so I need to be able to get the appId from the widget's parent/current app. How do I do this?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Sep 2022 14:26:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-get-current-appid-from-within-a-widget/m-p/1216062#M78823</guid>
      <dc:creator>ViktorSafar</dc:creator>
      <dc:date>2022-09-26T14:26:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to get current appId from within a widget?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-get-current-appid-from-within-a-widget/m-p/1216109#M78829</link>
      <description>&lt;P&gt;I never found a way to do that. Instead, I had a settings page where the user added in their own appId, location, and callback html information that I then used in the authentication section of my code&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="oauth.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/52184i2077E3BB6472F9A8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="oauth.png" alt="oauth.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Mon, 26 Sep 2022 15:42:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-get-current-appid-from-within-a-widget/m-p/1216109#M78829</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2022-09-26T15:42:58Z</dc:date>
    </item>
  </channel>
</rss>

