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

The information below is for an old version of the document
Document Type Active Internet-Draft (oauth WG)
Last updated 2012-11-28
Stream IETF
Intended RFC status (None)
Formats plain text pdf html bibtex
Stream WG state WG Document
Document shepherd Barry Leiba
IESG IESG state I-D Exists
Consensus Boilerplate Unknown
Telechat date
Responsible AD (None)
Send notices to (None)
OAuth                                                     J. Richer, Ed.
Internet-Draft                                     The MITRE Corporation
Intended status: Standards Track                           W. Mills, Ed.
Expires: May 30, 2013                                        Yahoo! Inc.
                                                      H. Tschofenig, Ed.
                                                  Nokia Siemens Networks
                                                       November 28, 2012

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

Abstract

   This document specifies the HTTP MAC access authentication scheme, an
   HTTP authentication method using a message authentication code (MAC)
   algorithm to provide cryptographic verification of portions of HTTP
   requests.  The document also defines an OAuth 2.0 binding for use as
   an access token type.

   NOTE: This document (and other OAuth 2.0 security documents, such as
   [I-D.tschofenig-oauth-hotk]) are still work in progress in the OAuth
   working group.  As such, the content of this document may change.
   For a discussion about security requirements please consult [I-D
   .tschofenig-oauth-security].  Your input on the detailed security
   requirements is highly appreciated.

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 30, 2013.

Copyright Notice

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

Richer, Mills & TschofenigExpires May 30, 2013                  [Page 1]
Internet-Draft            OAuth 2.0 MAC Tokens             November 2012

   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 . . . . . . . . . . . . . . . . . . . . . . . . .  2
     1.1.  Example  . . . . . . . . . . . . . . . . . . . . . . . . .  3
     1.2.  Notational Conventions . . . . . . . . . . . . . . . . . .  5
   2.  Issuing MAC Credentials  . . . . . . . . . . . . . . . . . . .  5
   3.  Making Requests  . . . . . . . . . . . . . . . . . . . . . . .  6
     3.1.  The "Authorization" Request Header . . . . . . . . . . . .  6
     3.2.  Request MAC  . . . . . . . . . . . . . . . . . . . . . . .  7
       3.2.1.  Normalized Request String  . . . . . . . . . . . . . .  7
       3.2.2.  hmac-sha-1 . . . . . . . . . . . . . . . . . . . . . .  8
       3.2.3.  hmac-sha-256 . . . . . . . . . . . . . . . . . . . . .  9
   4.  Verifying Requests . . . . . . . . . . . . . . . . . . . . . .  9
     4.1.  Timestamp Verification . . . . . . . . . . . . . . . . . .  9
     4.2.  The "WWW-Authenticate" Response Header Field . . . . . . . 10
   5.  Use with OAuth 2.0 . . . . . . . . . . . . . . . . . . . . . . 11
     5.1.  Issuing MAC-Type Access Tokens . . . . . . . . . . . . . . 11
   6.  Security Considerations  . . . . . . . . . . . . . . . . . . . 12
     6.1.  MAC Keys Transmission  . . . . . . . . . . . . . . . . . . 12
     6.2.  Confidentiality of Requests  . . . . . . . . . . . . . . . 12
     6.3.  Spoofing by Counterfeit Servers  . . . . . . . . . . . . . 12
     6.4.  Plaintext Storage of Credentials . . . . . . . . . . . . . 12
     6.5.  Entropy of MAC Keys  . . . . . . . . . . . . . . . . . . . 13
     6.6.  Denial of Service / Resource Exhaustion Attacks  . . . . . 13
     6.7.  Timing Attacks . . . . . . . . . . . . . . . . . . . . . . 14
     6.8.  CSRF Attacks . . . . . . . . . . . . . . . . . . . . . . . 14
     6.9.  Coverage Limitations . . . . . . . . . . . . . . . . . . . 14
   7.  IANA Considerations  . . . . . . . . . . . . . . . . . . . . . 15
     7.1.  The HTTP MAC Authentication Scheme Algorithm Registry  . . 15
       7.1.1.  Registration Template  . . . . . . . . . . . . . . . . 15
Show full document text