datatracker.ietf.org
Sign in
Version 5.3.0, 2014-04-12
Report a bug

OAuth 2.0 Message Authentication Code (MAC) Tokens
draft-ietf-oauth-v2-http-mac-05

Document type: Active Internet-Draft (oauth WG)
Document stream: IETF
Last updated: 2014-01-15
Intended RFC status: Unknown
Other versions: plain text, xml, pdf, html

IETF State: WG Document
Consensus: Unknown
Document shepherd: Barry Leiba

IESG State: I-D Exists
Responsible AD: (None)
Send notices to: No addresses provided

OAuth                                                          J. Richer
Internet-Draft                                     The MITRE Corporation
Intended status: Standards Track                                W. Mills
Expires: July 19, 2014                                       Yahoo! Inc.
                                                      H. Tschofenig, Ed.

                                                                 P. Hunt
                                                      Oracle Corporation
                                                        January 15, 2014

           OAuth 2.0 Message Authentication Code (MAC) Tokens
                  draft-ietf-oauth-v2-http-mac-05.txt

Abstract

   This specification describes how to use MAC Tokens in HTTP requests
   to access OAuth 2.0 protected resources.  An OAuth client willing to
   access a protected resource needs to demonstrate possession of a
   cryptographic key by using it with a keyed message digest function to
   the request.

   The document also defines a key distribution protocol for obtaining a
   fresh session key.

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 July 19, 2014.

Copyright Notice

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

Richer, et al.            Expires July 19, 2014                 [Page 1]
Internet-Draft            OAuth 2.0 MAC Tokens              January 2014

   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
   2.  Terminology . . . . . . . . . . . . . . . . . . . . . . . . .   4
   3.  Architecture  . . . . . . . . . . . . . . . . . . . . . . . .   4
   4.  Key Distribution  . . . . . . . . . . . . . . . . . . . . . .   6
     4.1.  Session Key Transport to Client . . . . . . . . . . . . .   6
     4.2.  Session Key Transport to Resource Server  . . . . . . . .   8
   5.  The Authenticator . . . . . . . . . . . . . . . . . . . . . .   9
     5.1.  The Authenticator . . . . . . . . . . . . . . . . . . . .   9
     5.2.  MAC Input String  . . . . . . . . . . . . . . . . . . . .  12
     5.3.  Keyed Message Digest Algorithms . . . . . . . . . . . . .  13
       5.3.1.  hmac-sha-1  . . . . . . . . . . . . . . . . . . . . .  13
       5.3.2.  hmac-sha-256  . . . . . . . . . . . . . . . . . . . .  14
   6.  Verifying the Authenticator . . . . . . . . . . . . . . . . .  14
     6.1.  Timestamp Verification  . . . . . . . . . . . . . . . . .  15
     6.2.  Error Handling  . . . . . . . . . . . . . . . . . . . . .  15
   7.  Example . . . . . . . . . . . . . . . . . . . . . . . . . . .  16
   8.  Security Considerations . . . . . . . . . . . . . . . . . . .  16
     8.1.  Key Distribution  . . . . . . . . . . . . . . . . . . . .  16
     8.2.  Offering Confidentiality Protection for Access to
           Protected Resources . . . . . . . . . . . . . . . . . . .  16
     8.3.  Authentication of Resource Servers  . . . . . . . . . . .  17
     8.4.  Plaintext Storage of Credentials  . . . . . . . . . . . .  17
     8.5.  Entropy of Session Keys . . . . . . . . . . . . . . . . .  17
     8.6.  Denial of Service / Resource Exhaustion Attacks . . . . .  18
     8.7.  Timing Attacks  . . . . . . . . . . . . . . . . . . . . .  18
     8.8.  CSRF Attacks  . . . . . . . . . . . . . . . . . . . . . .  19
     8.9.  Protecting HTTP Header Fields . . . . . . . . . . . . . .  19
   9.  IANA Considerations . . . . . . . . . . . . . . . . . . . . .  19
     9.1.  JSON Web Token Claims . . . . . . . . . . . . . . . . . .  19
     9.2.  MAC Token Algorithm Registry  . . . . . . . . . . . . . .  20

[include full document text]