<?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 Revoking OAuth2 Tokens in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/revoking-oauth2-tokens/m-p/492686#M24866</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As per the docs (&lt;A class="link-titled" href="http://resources.arcgis.com/EN/HELP/ARCGIS-REST-API/INDEX.HTML#/Authorize/02r300000214000000/" title="http://resources.arcgis.com/EN/HELP/ARCGIS-REST-API/INDEX.HTML#/Authorize/02r300000214000000/"&gt;ArcGIS REST API&lt;/A&gt;&amp;nbsp;,&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/rest/users-groups-and-items/authorize.htm" title="https://developers.arcgis.com/rest/users-groups-and-items/authorize.htm"&gt;Authorize—ArcGIS REST API: Users, groups, and content | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;) there is no apparent REST Endpoint for revoking issued OAuth2 Tokens.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In searching I stumbled across the&amp;nbsp;&lt;A href="https://www.arcgis.com/sharing/rest/oauth2/signout"&gt;https://www.arcgis.com/sharing/rest/oauth2/signout&lt;/A&gt;&amp;nbsp;endpoint which can be used to sign-out of AGOL and other platforms which make use of the &lt;EM&gt;esri_auth&lt;/EM&gt; cookie, however it only ever provides HTML responses, suggesting its strictly a browser flow endpoint and not for use with server side calls.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a means of revoking OAuth tokens with a purpose built REST Endpoint? Ideally, with functionality to provide either the access token directly, or the refresh token, which would invalid all associated tokens, and a response that isn't HTML.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Sep 2018 21:19:47 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2018-09-12T21:19:47Z</dc:date>
    <item>
      <title>Revoking OAuth2 Tokens</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/revoking-oauth2-tokens/m-p/492686#M24866</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As per the docs (&lt;A class="link-titled" href="http://resources.arcgis.com/EN/HELP/ARCGIS-REST-API/INDEX.HTML#/Authorize/02r300000214000000/" title="http://resources.arcgis.com/EN/HELP/ARCGIS-REST-API/INDEX.HTML#/Authorize/02r300000214000000/"&gt;ArcGIS REST API&lt;/A&gt;&amp;nbsp;,&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/rest/users-groups-and-items/authorize.htm" title="https://developers.arcgis.com/rest/users-groups-and-items/authorize.htm"&gt;Authorize—ArcGIS REST API: Users, groups, and content | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;) there is no apparent REST Endpoint for revoking issued OAuth2 Tokens.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In searching I stumbled across the&amp;nbsp;&lt;A href="https://www.arcgis.com/sharing/rest/oauth2/signout"&gt;https://www.arcgis.com/sharing/rest/oauth2/signout&lt;/A&gt;&amp;nbsp;endpoint which can be used to sign-out of AGOL and other platforms which make use of the &lt;EM&gt;esri_auth&lt;/EM&gt; cookie, however it only ever provides HTML responses, suggesting its strictly a browser flow endpoint and not for use with server side calls.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a means of revoking OAuth tokens with a purpose built REST Endpoint? Ideally, with functionality to provide either the access token directly, or the refresh token, which would invalid all associated tokens, and a response that isn't HTML.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2018 21:19:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/revoking-oauth2-tokens/m-p/492686#M24866</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2018-09-12T21:19:47Z</dc:date>
    </item>
    <item>
      <title>Re: Revoking OAuth2 Tokens</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/revoking-oauth2-tokens/m-p/492687#M24867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Its been 7 months now, and no change to the documentation, or feedback in this regard.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For those who are developing security conscious Applications authenticating users via OAuth, and are looking for a way to properly end a session, I'm sad to report that I still have yet to find, or be provided, any guidance on how to invalidate an Access Token from a within a Server flow.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems the only way to invalidate&amp;nbsp;an Access or Refresh Token is for the User to change their password - which thankfully will invalidate all existing tokens issued previously - Access and Refresh alike - so at the very least that's available as a fallback in the event of an breach resulting in the capture of the Refresh Token.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note - Refreshing an access token through the /token endpoint does not invalidate the original Access Token, so doing so only creates more valid Access Tokens in addition to the one that was already granted.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any plans to create a better OAuth integration experience? One can only hope.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Mar 2019 22:19:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/revoking-oauth2-tokens/m-p/492687#M24867</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2019-03-26T22:19:42Z</dc:date>
    </item>
    <item>
      <title>Re: Revoking OAuth2 Tokens</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/revoking-oauth2-tokens/m-p/492688#M24868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Paul.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I stumbled upon your question while trying to figure this out myself, so figured I'd share what I learnt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the &lt;STRONG&gt;revokeToken&lt;/STRONG&gt; endpoint (https POST only) to revoke OAuth access tokens or refresh tokens.&amp;nbsp;Pass in&amp;nbsp;&lt;STRONG&gt;auth_token&lt;/STRONG&gt;&amp;nbsp;and&amp;nbsp;&lt;STRONG&gt;client_id&lt;/STRONG&gt;. Optionally also pass in&amp;nbsp;&lt;STRONG&gt;token_type_hint&lt;/STRONG&gt; as "access_token" or "refresh_token" (otherwise we'll first check if it's an access token and if it's not,&amp;nbsp;check&amp;nbsp;if it's a&amp;nbsp;refresh token). Note that:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Only one-step OAuth tokens generated with user logins (i.e. not clientid/secret) can be revoked.&lt;/LI&gt;&lt;LI&gt;Revoking a refresh token revokes all access tokens generated from it.&lt;/LI&gt;&lt;LI&gt;Revoking a token that's invalid/revoked/expired/isn't the right type will return "success".&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This was introduced with the latest&amp;nbsp;release of ArcGIS Online (so after your most recent comment, I believe) and documentation should be coming with the&amp;nbsp;next&amp;nbsp;release.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nick.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jun 2019 15:44:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/revoking-oauth2-tokens/m-p/492688#M24868</guid>
      <dc:creator>Nicholas-Furness</dc:creator>
      <dc:date>2019-06-17T15:44:50Z</dc:date>
    </item>
    <item>
      <title>Re: Revoking OAuth2 Tokens</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/revoking-oauth2-tokens/m-p/492689#M24869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;FYI, the documentation for &lt;STRONG&gt;revokeToken&lt;/STRONG&gt; went live with today's release of the developer's site:&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/rest/users-groups-and-items/revoke-token.htm" title="https://developers.arcgis.com/rest/users-groups-and-items/revoke-token.htm"&gt;Revoke Token—ArcGIS REST API&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jul 2019 23:52:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/revoking-oauth2-tokens/m-p/492689#M24869</guid>
      <dc:creator>Nicholas-Furness</dc:creator>
      <dc:date>2019-07-02T23:52:19Z</dc:date>
    </item>
    <item>
      <title>Re: Revoking OAuth2 Tokens</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/revoking-oauth2-tokens/m-p/492690#M24870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Nicholas,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is spot on, thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Nov 2019 20:34:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/revoking-oauth2-tokens/m-p/492690#M24870</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2019-11-06T20:34:51Z</dc:date>
    </item>
  </channel>
</rss>

