datatracker.ietf.org
Sign in
Version 5.4.0, 2014-04-22
Report a bug

OAuth 2.0 Token Revocation
RFC 7009

Internet Engineering Task Force (IETF)               T. Lodderstedt, Ed.
Request for Comments: 7009                           Deutsche Telekom AG
Category: Standards Track                                      S. Dronia
ISSN: 2070-1721
                                                            M. Scurtescu
                                                                  Google
                                                             August 2013

                       OAuth 2.0 Token Revocation

Abstract

   This document proposes an additional endpoint for OAuth authorization
   servers, which allows clients to notify the authorization server that
   a previously obtained refresh or access token is no longer needed.
   This allows the authorization server to clean up security
   credentials.  A revocation request will invalidate the actual token
   and, if applicable, other tokens based on the same authorization
   grant.

Status of This Memo

   This is an Internet Standards Track document.

   This document is a product of the Internet Engineering Task Force
   (IETF).  It represents the consensus of the IETF community.  It has
   received public review and has been approved for publication by the
   Internet Engineering Steering Group (IESG).  Further information on
   Internet Standards is available in Section 2 of RFC 5741.

   Information about the current status of this document, any errata,
   and how to provide feedback on it may be obtained at
   http://www.rfc-editor.org/info/rfc7009.

Lodderstedt, et al.          Standards Track                    [Page 1]
RFC 7009                    Token Revocation                 August 2013

Copyright Notice

   Copyright (c) 2013 IETF Trust and the persons identified as the
   document authors.  All rights reserved.

   This document is subject to BCP 78 and the IETF Trust's Legal
   Provisions Relating to IETF Documents
   (http://trustee.ietf.org/license-info) in effect on the date of
   publication of this document.  Please review these documents
   carefully, as they describe your rights and restrictions with respect
   to this document.  Code Components extracted from this document must
   include Simplified BSD License text as described in Section 4.e of
   the Trust Legal Provisions and are provided without warranty as
   described in the Simplified BSD License.

Table of Contents

   1.  Introduction  . . . . . . . . . . . . . . . . . . . . . . . .   3
     1.1.  Requirements Language . . . . . . . . . . . . . . . . . .   3
   2.  Token Revocation  . . . . . . . . . . . . . . . . . . . . . .   3
     2.1.  Revocation Request  . . . . . . . . . . . . . . . . . . .   4
     2.2.  Revocation Response . . . . . . . . . . . . . . . . . . .   5
       2.2.1.  Error Response  . . . . . . . . . . . . . . . . . . .   6
     2.3.  Cross-Origin Support  . . . . . . . . . . . . . . . . . .   6
   3.  Implementation Note . . . . . . . . . . . . . . . . . . . . .   7
   4.  IANA Considerations . . . . . . . . . . . . . . . . . . . . .   8
     4.1.  OAuth Extensions Error Registration . . . . . . . . . . .   8
       4.1.1.  The "unsupported_token_type" Error Value  . . . . . .   8
       4.1.2.  OAuth Token Type Hints Registry . . . . . . . . . . .   8
         4.1.2.1.  Registration Template . . . . . . . . . . . . . .   9
         4.1.2.2.  Initial Registry Contents . . . . . . . . . . . .   9
   5.  Security Considerations . . . . . . . . . . . . . . . . . . .   9
   6.  Acknowledgements  . . . . . . . . . . . . . . . . . . . . . .  10
   7.  References  . . . . . . . . . . . . . . . . . . . . . . . . .  10
     7.1.  Normative References  . . . . . . . . . . . . . . . . . .  10
     7.2.  Informative References  . . . . . . . . . . . . . . . . .  11

Lodderstedt, et al.          Standards Track                    [Page 2]
RFC 7009                    Token Revocation                 August 2013

1.  Introduction

   The OAuth 2.0 core specification [RFC6749] defines several ways for a
   client to obtain refresh and access tokens.  This specification
   supplements the core specification with a mechanism to revoke both
   types of tokens.  A token is a string representing an authorization
   grant issued by the resource owner to the client.  A revocation
   request will invalidate the actual token and, if applicable, other
   tokens based on the same authorization grant and the authorization
   grant itself.

   From an end-user's perspective, OAuth is often used to log into a
   certain site or application.  This revocation mechanism allows a
   client to invalidate its tokens if the end-user logs out, changes
   identity, or uninstalls the respective application.  Notifying the
   authorization server that the token is no longer needed allows the

[include full document text]