<?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: Arcgis for JS 3.21, Android, Phonegap and OAuth2 in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-for-js-3-21-android-phonegap-and-oauth2/m-p/665330#M62122</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Thomas but I was trying to use the inline method without the popup as some users will have popups disabled. Portal seems to be a LOT of issues...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 Aug 2017 00:14:25 GMT</pubDate>
    <dc:creator>JasonAllen1</dc:creator>
    <dc:date>2017-08-04T00:14:25Z</dc:date>
    <item>
      <title>Arcgis for JS 3.21, Android, Phonegap and OAuth2</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-for-js-3-21-android-phonegap-and-oauth2/m-p/665328#M62120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have&amp;nbsp;created a hybrid app utilising ArcGIS for JS 3.21 and Phonegap. I am using the OAuth Basic example (&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/3/jssamples/portal_oauth_inline.html" title="https://developers.arcgis.com/javascript/3/jssamples/portal_oauth_inline.html"&gt;OAuth Basic | ArcGIS API for JavaScript 3.21&lt;/A&gt;). I have updated the appId and the portalURL to suit however the redirect_uri created by "new OAuthInfo({...})" is pointing to the Android asset (redirect_uri=file%3A%2F%2F%2Fandroid_asset%2Fwww%2Fportal_items.html). I have found that I need to replace this with a known URI such as "urn:ietf:wg:oauth:2.0:oob" but there is no way (that I can find) to modify the redirect_uri in the OAuthInfo method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am attempting to port an ArcGIS for Android native app (complete offline mobile GIS app) I have built to include online functionality but am stuck at the first hurdle of being able to log into an organizational portal...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Aug 2017 02:31:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-for-js-3-21-android-phonegap-and-oauth2/m-p/665328#M62120</guid>
      <dc:creator>JasonAllen1</dc:creator>
      <dc:date>2017-08-03T02:31:42Z</dc:date>
    </item>
    <item>
      <title>Re: Arcgis for JS 3.21, Android, Phonegap and OAuth2</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-for-js-3-21-android-phonegap-and-oauth2/m-p/665329#M62121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I haven't managed identity in 3.XX but I would think you could pass in "popupCallbackUrl" to the OAuthInfo constructor, ie:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; info &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;new&lt;/SPAN&gt; &lt;SPAN class="token class-name"&gt;OAuthInfo&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&amp;nbsp; appId&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"&amp;lt;pass in your application id here&amp;gt;"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
&amp;nbsp; popup&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;true&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
&amp;nbsp; popupCallbackUrl&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"&amp;lt;url to redirect to&amp;gt;"&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

esriId&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;registerOAuthInfos&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;info&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 04:07:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-for-js-3-21-android-phonegap-and-oauth2/m-p/665329#M62121</guid>
      <dc:creator>ThomasSolow</dc:creator>
      <dc:date>2021-12-12T04:07:17Z</dc:date>
    </item>
    <item>
      <title>Re: Arcgis for JS 3.21, Android, Phonegap and OAuth2</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-for-js-3-21-android-phonegap-and-oauth2/m-p/665330#M62122</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Thomas but I was trying to use the inline method without the popup as some users will have popups disabled. Portal seems to be a LOT of issues...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Aug 2017 00:14:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-for-js-3-21-android-phonegap-and-oauth2/m-p/665330#M62122</guid>
      <dc:creator>JasonAllen1</dc:creator>
      <dc:date>2017-08-04T00:14:25Z</dc:date>
    </item>
  </channel>
</rss>

