datatracker.ietf.org
Sign in
Version 5.7.4, 2014-11-12
Report a bug

JSON Web Token (JWT)
draft-ietf-oauth-json-web-token-31

Document type: Active Internet-Draft (oauth WG)
Document stream: IETF
Last updated: 2014-11-19
Intended RFC status: Proposed Standard
Other versions: plain text, xml, pdf, html

IETF State: Submitted to IESG for Publication Aug 2013
Consensus: Yes
Document shepherd: Hannes Tschofenig
Shepherd Write-Up: Last changed 2014-08-20

IESG State: IESG Evaluation::AD Followup
IANA Action State: None
(Has enough positions to pass.)
Responsible AD: Kathleen Moriarty
Send notices to: oauth-chairs@tools.ietf.org, draft-ietf-oauth-json-web-token@tools.ietf.org

OAuth Working Group                                             M. Jones
Internet-Draft                                                 Microsoft
Intended status: Standards Track                              J. Bradley
Expires: May 23, 2015                                      Ping Identity
                                                             N. Sakimura
                                                                     NRI
                                                       November 19, 2014

                          JSON Web Token (JWT)
                   draft-ietf-oauth-json-web-token-31

Abstract

   JSON Web Token (JWT) is a compact, URL-safe means of representing
   claims to be transferred between two parties.  The claims in a JWT
   are encoded as a JavaScript Object Notation (JSON) object that is
   used as the payload of a JSON Web Signature (JWS) structure or as the
   plaintext of a JSON Web Encryption (JWE) structure, enabling the
   claims to be digitally signed or MACed and/or encrypted.

Status of this Memo

   This Internet-Draft is submitted in full conformance with the
   provisions of BCP 78 and BCP 79.

   Internet-Drafts are working documents of the Internet Engineering
   Task Force (IETF).  Note that other groups may also distribute
   working documents as Internet-Drafts.  The list of current Internet-
   Drafts is at http://datatracker.ietf.org/drafts/current/.

   Internet-Drafts are draft documents valid for a maximum of six months
   and may be updated, replaced, or obsoleted by other documents at any
   time.  It is inappropriate to use Internet-Drafts as reference
   material or to cite them other than as "work in progress."

   This Internet-Draft will expire on May 23, 2015.

Copyright Notice

   Copyright (c) 2014 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

Jones, et al.             Expires May 23, 2015                  [Page 1]
Internet-Draft            JSON Web Token (JWT)             November 2014

   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 . . . . . . . . . . . . . . . . . . . . . . . . .  4
     1.1.  Notational Conventions . . . . . . . . . . . . . . . . . .  4
   2.  Terminology  . . . . . . . . . . . . . . . . . . . . . . . . .  4
   3.  JSON Web Token (JWT) Overview  . . . . . . . . . . . . . . . .  6
     3.1.  Example JWT  . . . . . . . . . . . . . . . . . . . . . . .  6
   4.  JWT Claims . . . . . . . . . . . . . . . . . . . . . . . . . .  8
     4.1.  Registered Claim Names . . . . . . . . . . . . . . . . . .  8
       4.1.1.  "iss" (Issuer) Claim . . . . . . . . . . . . . . . . .  9
       4.1.2.  "sub" (Subject) Claim  . . . . . . . . . . . . . . . .  9
       4.1.3.  "aud" (Audience) Claim . . . . . . . . . . . . . . . .  9
       4.1.4.  "exp" (Expiration Time) Claim  . . . . . . . . . . . .  9
       4.1.5.  "nbf" (Not Before) Claim . . . . . . . . . . . . . . .  9
       4.1.6.  "iat" (Issued At) Claim  . . . . . . . . . . . . . . . 10
       4.1.7.  "jti" (JWT ID) Claim . . . . . . . . . . . . . . . . . 10
     4.2.  Public Claim Names . . . . . . . . . . . . . . . . . . . . 10
     4.3.  Private Claim Names  . . . . . . . . . . . . . . . . . . . 10
   5.  JOSE Header  . . . . . . . . . . . . . . . . . . . . . . . . . 10
     5.1.  "typ" (Type) Header Parameter  . . . . . . . . . . . . . . 11
     5.2.  "cty" (Content Type) Header Parameter  . . . . . . . . . . 11
     5.3.  Replicating Claims as Header Parameters  . . . . . . . . . 11
   6.  Unsecured JWTs . . . . . . . . . . . . . . . . . . . . . . . . 12
     6.1.  Example Unsecured JWT  . . . . . . . . . . . . . . . . . . 12
   7.  Creating and Validating JWTs . . . . . . . . . . . . . . . . . 13
     7.1.  Creating a JWT . . . . . . . . . . . . . . . . . . . . . . 13
     7.2.  Validating a JWT . . . . . . . . . . . . . . . . . . . . . 14
     7.3.  String Comparison Rules  . . . . . . . . . . . . . . . . . 15
   8.  Implementation Requirements  . . . . . . . . . . . . . . . . . 16
   9.  URI for Declaring that Content is a JWT  . . . . . . . . . . . 16
   10. IANA Considerations  . . . . . . . . . . . . . . . . . . . . . 17
     10.1. JSON Web Token Claims Registry . . . . . . . . . . . . . . 17

[include full document text]