<?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: OAuth issues in ArcGIS Online Developers Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-developers-questions/oauth-issues/m-p/507205#M593</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;So you need to pass "redirect_uri" when calling &lt;/SPAN&gt;&lt;A href="https://www.arcgis.com/sharing/oauth2/token?"&gt;https://www.arcgis.com/sharing/oauth2/token?&lt;/A&gt;&lt;SPAN&gt; Just want to make sure I know exactly what needs to get updated.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Aug 2013 14:17:49 GMT</pubDate>
    <dc:creator>PatrickArlt1</dc:creator>
    <dc:date>2013-08-08T14:17:49Z</dc:date>
    <item>
      <title>OAuth issues</title>
      <link>https://community.esri.com/t5/arcgis-online-developers-questions/oauth-issues/m-p/507201#M589</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;hello&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm trying to exchange an authorization code for an access token and I'm getting a weird error about missing a "redirect_url" (which I thought was not even necessary for this part of the flow)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;POST &lt;/SPAN&gt;&lt;A href="https://www.arcgis.com/sharing/oauth2/token"&gt;https://www.arcgis.com/sharing/oauth2/token&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;body:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;code=LPr6MySmwV9msk5IudznYfsQgGXcLFmN1dt9XpNoWE-nSi4UeGldhVSiroOzEfiieP30udISuUdR15sxRjcij7UkSATbrRmWXDNo0E_k7VrGolKRmOYa0ILwhX4x_2va0XIVi-RBupeF4SWE7rWtnWmIksxdoiH2jIw3kA3uvqx56ZlbQM_-pcT6v3wYAk6dtXkRik_taKiBB71qS34kzw..&amp;amp;client_secret=MY_VALID_CLIENT_SECRET&amp;amp;grant_type=authorization_code&amp;amp;client_id=FO7xwMrLHLjijBnD&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;response:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;200 {"error":{"code":400,"error":"invalid_request","error_description":"redirect_uri not specified","message":"invalid_request","details":[]}}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;also, how long to the refresh_tokens last? can the original auth code be used to get a new refresh_token if it expires? (generally with other APIs they don't but in the docs they say it lasts about two weeks)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;cheers&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;brian&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Aug 2013 19:22:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-developers-questions/oauth-issues/m-p/507201#M589</guid>
      <dc:creator>BrianFlood</dc:creator>
      <dc:date>2013-08-06T19:22:57Z</dc:date>
    </item>
    <item>
      <title>Re: OAuth issues</title>
      <link>https://community.esri.com/t5/arcgis-online-developers-questions/oauth-issues/m-p/507202#M590</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;fwiw, the "redirect_uri" param is necessary for token requests (this is missing in the online docs here &lt;/SPAN&gt;&lt;A href="https://developers.arcgis.com/en/authentication/user-php-other.html"&gt;https://developers.arcgis.com/en/authentication/user-php-other.html&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;working now, moving on...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;cheers&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;brian&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Aug 2013 19:37:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-developers-questions/oauth-issues/m-p/507202#M590</guid>
      <dc:creator>BrianFlood</dc:creator>
      <dc:date>2013-08-06T19:37:20Z</dc:date>
    </item>
    <item>
      <title>Re: OAuth issues</title>
      <link>https://community.esri.com/t5/arcgis-online-developers-questions/oauth-issues/m-p/507203#M591</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Looks like the docs are incorrect, refresh tokens should last forever.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Aug 2013 01:10:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-developers-questions/oauth-issues/m-p/507203#M591</guid>
      <dc:creator>PatrickArlt1</dc:creator>
      <dc:date>2013-08-08T01:10:38Z</dc:date>
    </item>
    <item>
      <title>Re: OAuth issues</title>
      <link>https://community.esri.com/t5/arcgis-online-developers-questions/oauth-issues/m-p/507204#M592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;refresh_tokens - thanks, that makes more sense, had never come across refresh tokens that expired before&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;also, you should add that "redirect_uri" is needed when requesting an access token, thats missing from the docs too&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;cheers&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;brian&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Aug 2013 01:16:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-developers-questions/oauth-issues/m-p/507204#M592</guid>
      <dc:creator>BrianFlood</dc:creator>
      <dc:date>2013-08-08T01:16:54Z</dc:date>
    </item>
    <item>
      <title>Re: OAuth issues</title>
      <link>https://community.esri.com/t5/arcgis-online-developers-questions/oauth-issues/m-p/507205#M593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;So you need to pass "redirect_uri" when calling &lt;/SPAN&gt;&lt;A href="https://www.arcgis.com/sharing/oauth2/token?"&gt;https://www.arcgis.com/sharing/oauth2/token?&lt;/A&gt;&lt;SPAN&gt; Just want to make sure I know exactly what needs to get updated.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Aug 2013 14:17:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-developers-questions/oauth-issues/m-p/507205#M593</guid>
      <dc:creator>PatrickArlt1</dc:creator>
      <dc:date>2013-08-08T14:17:49Z</dc:date>
    </item>
    <item>
      <title>Re: OAuth issues</title>
      <link>https://community.esri.com/t5/arcgis-online-developers-questions/oauth-issues/m-p/507206#M594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;yes, or you get the error above. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;fwiw, it appears other API's require the redirect_uri to be passed in for verification (not actual redirection). see DropBox's OAuth2 token request: &lt;/SPAN&gt;&lt;A href="https://www.dropbox.com/developers/core/docs#oa2-token"&gt;https://www.dropbox.com/developers/core/docs#oa2-token&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Aug 2013 15:27:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-developers-questions/oauth-issues/m-p/507206#M594</guid>
      <dc:creator>BrianFlood</dc:creator>
      <dc:date>2013-08-08T15:27:35Z</dc:date>
    </item>
    <item>
      <title>Re: OAuth issues</title>
      <link>https://community.esri.com/t5/arcgis-online-developers-questions/oauth-issues/m-p/507207#M595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm starting to see Refresh Tokens expiring. This is what is described in the docs but, as patrick explained above, this should not happen. If this is the intended flow, how are we suppose to get a new refresh token? I've never seen another OAuth2 api that expired it's refresh tokens...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;fwiw, do calls to refresh the access token sometimes return different refresh_tokens?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;'{"error":{"code":400,"error":"invalid_request","error_description":"refresh_token expired","message":"invalid_request","details":[]}}'&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;docs - &lt;/SPAN&gt;&lt;A href="https://developers.arcgis.com/en/authentication/user-php-other.html"&gt;https://developers.arcgis.com/en/authentication/user-php-other.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;relevant section (no mention on how to get a new refresh token):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"The refresh token can be used to obtain subsequent access tokens. Access tokens are short-lived. The app can get a new access_token by using the refresh_token obtained above. The lifetime of the refresh token that is returned by this call is controllable by the app. The default expiry time for the refresh token returned by this flow is two weeks. Using this flow, you can request a refresh token that is valid for a longer period by passing an expiration (in minutes) parameter during authorization. The refresh token that is returned may be valid for a shorter period than requested based on the maximum expiry time set by the user's organization or the platform."&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Sep 2013 18:07:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-developers-questions/oauth-issues/m-p/507207#M595</guid>
      <dc:creator>BrianFlood</dc:creator>
      <dc:date>2013-09-26T18:07:37Z</dc:date>
    </item>
  </channel>
</rss>

