<?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: oauth2 problems - redirect uri issue in ArcGIS Runtime SDK for Android Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/oauth2-problems-redirect-uri-issue/m-p/189427#M1262</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just a quick followup.&amp;nbsp; I can get the code to take me to the login redirect by putting in the entire path via the app.&amp;nbsp; However it always fails to login either via the sample app or web browser.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.arcgis.com/sharing/oauth2/authorize?response_type=code&amp;amp;client_id=RtVrbexXFDewENQo&amp;amp;redirect_uri=oauthdemo://auth" title="https://www.arcgis.com/sharing/oauth2/authorize?response_type=code&amp;amp;client_id=RtVrbexXFDewENQo&amp;amp;redirect_uri=oauthdemo://auth"&gt;https://www.arcgis.com/sharing/oauth2/authorize?response_type=code&amp;amp;client_id=RtVrbexXFDewENQo&amp;amp;redirect_uri=oauthdemo://a…&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Sep 2014 20:55:53 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2014-09-23T20:55:53Z</dc:date>
    <item>
      <title>oauth2 problems - redirect uri issue</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/oauth2-problems-redirect-uri-issue/m-p/189426#M1261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK I am following the oauth2sample example for Android.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have setup the app and it has a Client ID.&amp;nbsp; I also setup the app with the Redirect URI for which I put in "oauthdemo://auth". In Strings.xml I have the following....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;lt;string name="portal_url"&amp;gt;&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://www.arcgis.com/" rel="nofollow" target="_blank"&gt;https://www.arcgis.com/&lt;/A&gt;&lt;SPAN&gt;&amp;lt;/string&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;string name="client_id"&amp;gt;RtVrbexXFDewENQo&amp;lt;/string&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;string name="app_name"&amp;gt;OAuth2Sample&amp;lt;/string&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;string name="login_type_dlg_message"&amp;gt;Log in with saved credentials?&amp;lt;/string&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;string name="yes"&amp;gt;Yes&amp;lt;/string&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;string name="no"&amp;gt;No&amp;lt;/string&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;string name="enter_portal_url"&amp;gt;Enter Portal URL&amp;lt;/string&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;string name="OAuth2_Sample"&amp;gt;OAuth2 Sample&amp;lt;/string&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;string name="continue_with_saved_credentials"&amp;gt;Continue with saved Credentials?&amp;lt;/string&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;string name="quit_app"&amp;gt;Quit App?&amp;lt;/string&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the OAuth2 java class&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; OAuthView oAuthView = new OAuthView(context, getResources().getString(R.string.portal_url), getResources()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .getString(R.string.client_id), new CallbackListener&amp;lt;UserCredentials&amp;gt;() {&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I run the sample I always get Error Invalid redirect_uri Error 400.&amp;nbsp; Where in the oAuthView example am I supposed to input the redirect uri?&amp;nbsp; I see no place for it in the code???? When I go into a web browser on the device it does take me to the correct location when I input the redirect uri and client id as follows...&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.arcgis.com/sharing/oauth2/authorize?response_type=code&amp;amp;client_id=RtVrbexXFDewENQo&amp;amp;redirect_uri=oauthdemo://auth" title="https://www.arcgis.com/sharing/oauth2/authorize?response_type=code&amp;amp;client_id=RtVrbexXFDewENQo&amp;amp;redirect_uri=oauthdemo://auth"&gt;https://www.arcgis.com/sharing/oauth2/authorize?response_type=code&amp;amp;client_id=RtVrbexXFDewENQo&amp;amp;&lt;/A&gt;&lt;A href="https://www.arcgis.com/sharing/oauth2/authorize?response_type=code&amp;amp;client_id=RtVrbexXFDewENQo&amp;amp;redirect_uri=oauthdemo://auth" style="line-height: 1.5;" title="https://www.arcgis.com/sharing/oauth2/authorize?response_type=code&amp;amp;client_id=RtVrbexXFDewENQo&amp;amp;redirect_uri=oauthdemo://auth"&gt;redirect_uri=oauthdemo://a…&lt;/A&gt;&lt;SPAN style="line-height: 1.5;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What gives??&amp;nbsp; How do I input the redirect uri into the code above to make it work?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Sep 2014 17:00:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/oauth2-problems-redirect-uri-issue/m-p/189426#M1261</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2014-09-19T17:00:52Z</dc:date>
    </item>
    <item>
      <title>Re: oauth2 problems - redirect uri issue</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/oauth2-problems-redirect-uri-issue/m-p/189427#M1262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just a quick followup.&amp;nbsp; I can get the code to take me to the login redirect by putting in the entire path via the app.&amp;nbsp; However it always fails to login either via the sample app or web browser.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.arcgis.com/sharing/oauth2/authorize?response_type=code&amp;amp;client_id=RtVrbexXFDewENQo&amp;amp;redirect_uri=oauthdemo://auth" title="https://www.arcgis.com/sharing/oauth2/authorize?response_type=code&amp;amp;client_id=RtVrbexXFDewENQo&amp;amp;redirect_uri=oauthdemo://auth"&gt;https://www.arcgis.com/sharing/oauth2/authorize?response_type=code&amp;amp;client_id=RtVrbexXFDewENQo&amp;amp;redirect_uri=oauthdemo://a…&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Sep 2014 20:55:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/oauth2-problems-redirect-uri-issue/m-p/189427#M1262</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2014-09-23T20:55:53Z</dc:date>
    </item>
    <item>
      <title>Re: oauth2 problems - redirect uri issue</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/oauth2-problems-redirect-uri-issue/m-p/189428#M1263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK should have read the instructions more closely.&amp;nbsp; Boiled down to needing to get the redirect uri in as urn:ietf:wg:oauth:2.0:oob in the app itself.&amp;nbsp; Tried this the other day and it did not work, but it does now.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Sep 2014 23:32:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/oauth2-problems-redirect-uri-issue/m-p/189428#M1263</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2014-09-23T23:32:52Z</dc:date>
    </item>
  </channel>
</rss>

