<?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: DefaultOAuthIntentReceiver OAuth Redirect URI in ArcGIS Runtime SDK for Android Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/defaultoauthintentreceiver-oauth-redirect-uri/m-p/1377746#M6151</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;When we &lt;A href="https://developers.arcgis.com/documentation/mapping-apis-and-services/security/tutorials/register-your-application/" target="_self"&gt;register your app&lt;/A&gt; for OAuth, we have to specify the re-directURI. For a given ClientID, only the registered re-directURIs are allowed. For the sample, the redirectURI allowed is `&lt;EM&gt;&lt;STRONG&gt;authenticate-with-oauth://&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;auth&lt;/STRONG&gt;&lt;/EM&gt;`. You need to register your own app.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Rama&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 02 Feb 2024 19:15:48 GMT</pubDate>
    <dc:creator>RamaChintapalli</dc:creator>
    <dc:date>2024-02-02T19:15:48Z</dc:date>
    <item>
      <title>DefaultOAuthIntentReceiver OAuth Redirect URI</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/defaultoauthintentreceiver-oauth-redirect-uri/m-p/1374816#M6148</link>
      <description>&lt;P&gt;From the sample code, the redirect URI is as follows:&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;"authenticate-with-oauth"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Example:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;lt;activity&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;android&lt;/SPAN&gt;:name&lt;SPAN&gt;="com.esri.arcgisruntime.security.DefaultOAuthIntentReceiver"&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;android&lt;/SPAN&gt;:exported&lt;SPAN&gt;="true"&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;android&lt;/SPAN&gt;:launchMode&lt;SPAN&gt;="singleTask"&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;intent-filter&amp;gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;action &lt;/SPAN&gt;&lt;SPAN&gt;android&lt;/SPAN&gt;:name&lt;SPAN&gt;="android.intent.action.VIEW" &lt;/SPAN&gt;&lt;SPAN&gt;/&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;category &lt;/SPAN&gt;&lt;SPAN&gt;android&lt;/SPAN&gt;:name&lt;SPAN&gt;="android.intent.category.DEFAULT" &lt;/SPAN&gt;&lt;SPAN&gt;/&amp;gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;category &lt;/SPAN&gt;&lt;SPAN&gt;android&lt;/SPAN&gt;:name&lt;SPAN&gt;="android.intent.category.BROWSABLE" &lt;/SPAN&gt;&lt;SPAN&gt;/&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;data&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;android&lt;/SPAN&gt;:host&lt;SPAN&gt;="@string/oauth_redirect_host"&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;android&lt;/SPAN&gt;:scheme&lt;SPAN&gt;="@string/oauth_redirect_uri" &lt;/SPAN&gt;&lt;SPAN&gt;/&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;/intent-filter&amp;gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;/activity&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Where "oauth_redirect_host is "auth" and "oauth_redirect_uri" is "authenticate-with-oauth". When used properly in the sample code as shown in:&amp;nbsp;&lt;A href="https://developers.arcgis.com/android/java/sample-code/authenticate-with-oauth/" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/android/java/sample-code/authenticate-with-oauth/&lt;/A&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;This works as expected. Here's my question though, why does any other redirect URI not navigate back to the Android app? When I use a different redirect URI I either see an error displayed before I can even log in or I just continuously see the login prompt after logging in. I've tried multiple different configurations without success. I thought this post would help but I still observe the same issue:&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/android-oauth-what-should-i-use-for-the-redirect/m-p/427908#M2903" target="_blank" rel="noopener"&gt;https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/android-oauth-what-should-i-use-for-the-redirect/m-p/427908#M2903&lt;/A&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 26 Jan 2024 13:53:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/defaultoauthintentreceiver-oauth-redirect-uri/m-p/1374816#M6148</guid>
      <dc:creator>NathanMeade</dc:creator>
      <dc:date>2024-01-26T13:53:26Z</dc:date>
    </item>
    <item>
      <title>Re: DefaultOAuthIntentReceiver OAuth Redirect URI</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/defaultoauthintentreceiver-oauth-redirect-uri/m-p/1377746#M6151</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;When we &lt;A href="https://developers.arcgis.com/documentation/mapping-apis-and-services/security/tutorials/register-your-application/" target="_self"&gt;register your app&lt;/A&gt; for OAuth, we have to specify the re-directURI. For a given ClientID, only the registered re-directURIs are allowed. For the sample, the redirectURI allowed is `&lt;EM&gt;&lt;STRONG&gt;authenticate-with-oauth://&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;auth&lt;/STRONG&gt;&lt;/EM&gt;`. You need to register your own app.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Rama&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2024 19:15:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/defaultoauthintentreceiver-oauth-redirect-uri/m-p/1377746#M6151</guid>
      <dc:creator>RamaChintapalli</dc:creator>
      <dc:date>2024-02-02T19:15:48Z</dc:date>
    </item>
    <item>
      <title>Re: DefaultOAuthIntentReceiver OAuth Redirect URI</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/defaultoauthintentreceiver-oauth-redirect-uri/m-p/1377774#M6152</link>
      <description>&lt;P&gt;Yes, I am already doing this. I am registering different redirect URIs to my ESRI Application for the given client id. When I reference any redirect URI I already have set that isn't&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;`&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;authenticate-with-oauth://&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;auth&lt;/STRONG&gt;&lt;/EM&gt;` then I just get the infinite loop of being prompted to login. Why is this the only redirect URI that actually navigates back to the app?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2024 20:02:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/defaultoauthintentreceiver-oauth-redirect-uri/m-p/1377774#M6152</guid>
      <dc:creator>NathanMeade</dc:creator>
      <dc:date>2024-02-02T20:02:48Z</dc:date>
    </item>
    <item>
      <title>Re: DefaultOAuthIntentReceiver OAuth Redirect URI</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/defaultoauthintentreceiver-oauth-redirect-uri/m-p/1377861#M6153</link>
      <description>&lt;P&gt;Can you share the other re-directURIs format that you specified at the time of registering the app? The browsers expect it to be &lt;STRONG&gt;&amp;lt;my-custom-app-scheme&amp;gt;://&amp;lt;my-custom-app-host&amp;gt;. &lt;/STRONG&gt;The semi-colon with two forward slashes is required&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Rama&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2024 23:07:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/defaultoauthintentreceiver-oauth-redirect-uri/m-p/1377861#M6153</guid>
      <dc:creator>RamaChintapalli</dc:creator>
      <dc:date>2024-02-02T23:07:52Z</dc:date>
    </item>
    <item>
      <title>Re: DefaultOAuthIntentReceiver OAuth Redirect URI</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/defaultoauthintentreceiver-oauth-redirect-uri/m-p/1378183#M6155</link>
      <description>&lt;P&gt;The main one that I was using was "MobileMap://auth". I had this set as a redirect URI for my ESRI application and also was in the Android code as well (&lt;SPAN&gt;DefaultOAuthIntentReceiver in AndroidManifest.xml and&amp;nbsp;OAuthConfiguration in MainActivity).&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Feb 2024 15:45:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/defaultoauthintentreceiver-oauth-redirect-uri/m-p/1378183#M6155</guid>
      <dc:creator>NathanMeade</dc:creator>
      <dc:date>2024-02-05T15:45:25Z</dc:date>
    </item>
    <item>
      <title>Re: DefaultOAuthIntentReceiver OAuth Redirect URI</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/defaultoauthintentreceiver-oauth-redirect-uri/m-p/1378538#M6157</link>
      <description>&lt;P&gt;The re-direct URI seems fine. Would it be possible to share your repro code (using a temporary account)&amp;nbsp; via a direct message&amp;nbsp;&amp;nbsp;&lt;STRONG&gt;or&lt;/STRONG&gt; provide network logs via direct message &lt;STRONG&gt;or&lt;/STRONG&gt; debug your app through our &lt;A href="https://support.esri.com/en-us/contact" target="_self"&gt;support&lt;/A&gt;?&lt;/P&gt;</description>
      <pubDate>Tue, 06 Feb 2024 06:39:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/defaultoauthintentreceiver-oauth-redirect-uri/m-p/1378538#M6157</guid>
      <dc:creator>RamaChintapalli</dc:creator>
      <dc:date>2024-02-06T06:39:18Z</dc:date>
    </item>
    <item>
      <title>Re: DefaultOAuthIntentReceiver OAuth Redirect URI</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/defaultoauthintentreceiver-oauth-redirect-uri/m-p/1380134#M6158</link>
      <description>&lt;P&gt;Hey Rama, I appreciate your help on this. I believe that I do actually have it working now. I'm not allowed to share the source code but in case I end up having issues again with this I could pursue one of those other two options.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Feb 2024 01:09:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/defaultoauthintentreceiver-oauth-redirect-uri/m-p/1380134#M6158</guid>
      <dc:creator>NathanMeade</dc:creator>
      <dc:date>2024-02-09T01:09:16Z</dc:date>
    </item>
  </channel>
</rss>

