[OAUTH-WG] grant type related typo

Laurence Miao <laurence.miao@gmail.com> Thu, 17 June 2010 10:19 UTC

Return-Path: <laurence.miao@gmail.com>
X-Original-To: oauth@core3.amsl.com
Delivered-To: oauth@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id F26993A68FA for <oauth@core3.amsl.com>; Thu, 17 Jun 2010 03:19:00 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.598
X-Spam-Level:
X-Spam-Status: No, score=-2.598 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, HTML_MESSAGE=0.001]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Mnln6SiFhk1n for <oauth@core3.amsl.com>; Thu, 17 Jun 2010 03:19:00 -0700 (PDT)
Received: from mail-gw0-f44.google.com (mail-gw0-f44.google.com [74.125.83.44]) by core3.amsl.com (Postfix) with ESMTP id 02F9E3A6856 for <oauth@ietf.org>; Thu, 17 Jun 2010 03:18:59 -0700 (PDT)
Received: by gwj16 with SMTP id 16so5009037gwj.31 for <oauth@ietf.org>; Thu, 17 Jun 2010 03:19:02 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:from:date :message-id:subject:to:content-type; bh=nmUoEB6e/MNYGS4n35FomxagDpUJgv/j3XsmEylhf3s=; b=A4lz6e1nHRphIxDzVlQGhGfWFsCcb8Nya5KcMT/uMPV7U0fqik0T7TmgZAbmuDkfC2 Zvkh3iqe4jSjOK74HCQUhvhmuhegL7yrT7EF2svh/Akgbp8SCRh9qxH58LMGOEz/g1Cu CzjTyMlhFMGiYq3boHl+mzJ/66s82MhEJTrkE=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; b=ovGHcRr8rfmOKKapLyAJ8doYtolUu+Y3IWF+gcb+7SSQ72egWd0pivzZVPd0D5hb3Z DCexXcNev1pHleuisZMbv+xSL10D4N2JLy2wRCNGeb0AjmhloT+mNb4yjw3Ne+0vuLm0 pe9TVa2n0sPlLdrTlLDTrfgZzmt/sY3zTY3wI=
Received: by 10.150.194.12 with SMTP id r12mr11691439ybf.272.1276769942158; Thu, 17 Jun 2010 03:19:02 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.150.228.7 with HTTP; Thu, 17 Jun 2010 03:18:42 -0700 (PDT)
From: Laurence Miao <laurence.miao@gmail.com>
Date: Thu, 17 Jun 2010 18:18:42 +0800
Message-ID: <AANLkTimP6RSzgrvkbRnt94mG-tFm2L_XG8s8NnJw5NtP@mail.gmail.com>
To: oauth@ietf.org
Content-Type: multipart/alternative; boundary="000e0cdf19b4dcc4080489372a8e"
Subject: [OAUTH-WG] grant type related typo
X-BeenThere: oauth@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: OAUTH WG <oauth.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/oauth>, <mailto:oauth-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/oauth>
List-Post: <mailto:oauth@ietf.org>
List-Help: <mailto:oauth-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/oauth>, <mailto:oauth-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 17 Jun 2010 10:19:01 -0000

hi,

this seems to be a typo, notice the inconsistency of definition of
grant_type value and example of grant_type parameter.
this apply to oauth spec 2 draft 08

==========

4. Obtaining an Access Token

  ...
   grant_type
         REQUIRED.  The access grand type included in the request.
         Value MUST be one of "authorization_code",

         "user_basic_credentials", "assertion", "refresh_token", or

         "none" (which indicates the client is acting on behalf of
         itself).
------------------------

4.1.2. Resource Owner Basic Credentials
  ...
     POST /token HTTP/1.1
     Host: server.example.com

     Content-Type: application/x-www-form-urlencoded

     grant_type=user_basic&client_id=s6BhdRkqt3&
     client_secret=47HDu8s&username=johndoe&password=A3ddj3w
===================

thanks