Re: [OAUTH-WG] Draf 10 OAuth chapter 2.1 question

Eran Hammer-Lahav <eran@hueniverse.com> Wed, 01 December 2010 06:18 UTC

Return-Path: <eran@hueniverse.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 ABC6E3A6CF4 for <oauth@core3.amsl.com>; Tue, 30 Nov 2010 22:18:39 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.496
X-Spam-Level:
X-Spam-Status: No, score=-2.496 tagged_above=-999 required=5 tests=[AWL=0.103, BAYES_00=-2.599]
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 hf+xckNGPjZL for <oauth@core3.amsl.com>; Tue, 30 Nov 2010 22:18:38 -0800 (PST)
Received: from p3plex1out02.prod.phx3.secureserver.net (p3plex1out02.prod.phx3.secureserver.net [72.167.180.18]) by core3.amsl.com (Postfix) with SMTP id D2F193A6CF1 for <oauth@ietf.org>; Tue, 30 Nov 2010 22:18:38 -0800 (PST)
Received: (qmail 23536 invoked from network); 1 Dec 2010 06:19:51 -0000
Received: from unknown (HELO smtp.ex1.secureserver.net) (72.167.180.20) by p3plex1out02.prod.phx3.secureserver.net with SMTP; 1 Dec 2010 06:19:51 -0000
Received: from P3PW5EX1MB01.EX1.SECURESERVER.NET ([10.6.135.20]) by P3PW5EX1HT002.EX1.SECURESERVER.NET ([72.167.180.20]) with mapi; Tue, 30 Nov 2010 23:19:52 -0700
From: Eran Hammer-Lahav <eran@hueniverse.com>
To: Kristoffer Gronowski <kristoffer.gronowski@ericsson.com>, "oauth@ietf.org" <oauth@ietf.org>
Date: Tue, 30 Nov 2010 23:20:00 -0700
Thread-Topic: Draf 10 OAuth chapter 2.1 question
Thread-Index: Act1MZiEzxFBD0XQQ1+jz60a7Grs0gAABllQBvuEXKA=
Message-ID: <90C41DD21FB7C64BB94121FBBC2E72343D4B06593B@P3PW5EX1MB01.EX1.SECURESERVER.NET>
References: <C0AC8FAB6849AB4FADACCC70A949E2F10929F40271@EUSAACMS0701.eamcs.ericsson.se>
In-Reply-To: <C0AC8FAB6849AB4FADACCC70A949E2F10929F40271@EUSAACMS0701.eamcs.ericsson.se>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
acceptlanguage: en-US
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
Subject: Re: [OAUTH-WG] Draf 10 OAuth chapter 2.1 question
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: Wed, 01 Dec 2010 06:18:39 -0000

This is fixed (back) in -11.

EHL

> -----Original Message-----
> From: oauth-bounces@ietf.org [mailto:oauth-bounces@ietf.org] On Behalf
> Of Kristoffer Gronowski
> Sent: Tuesday, October 26, 2010 10:19 AM
> To: oauth@ietf.org
> Subject: [OAUTH-WG] Draf 10 OAuth chapter 2.1 question
> 
> Hi!
> 
> Just wondering for clarification on the example.
> 
> For example (line breaks are for display purposes only):
> 
> 
>      POST /token HTTP/1.1
>      Host: server.example.com
>      Authorization: Basic czZCaGRSa3F0MzpnWDFmQmF0M2JW
>      Content-Type: application/x-www-form-urlencoded
> 
> 
> grant_type=authorization_code&client_id=s6BhdRkqt3&code=i1WsRn1uB1&
>      redirect_uri=https%3A%2F%2Fclient%2Eexample%2Ecom%2Fcb
> 
> 
>    Alternatively, the client MAY include the password in the request
>    body using the following parameter:
> 
>    client_secret  REQUIRED.  The client password.
> 
>    For example (line breaks are for display purposes only):
> 
> 
>      POST /token HTTP/1.1
>      Host: server.example.com
>      Content-Type: application/x-www-form-urlencoded
> 
>      grant_type=authorization_code&client_id=s6BhdRkqt3&
>      client_secret=gX1fBat3bV&code=i1WsRn1uB1&
>      redirect_uri=https%3A%2F%2Fclient%2Eexample%2Ecom%2Fcb
> 
> 
> When searching for the password should also the user part be used?
> If you Base64 decode czZCaGRSa3F0MzpnWDFmQmF0M2JW you get:
> s6BhdRkqt3:gX1fBat3bV
> 
> So it is sending client_id:client_secret.
> In that case the FORM has a redundant client_id parameter.
> Should an implementation search for client_id in the basic header or not?
> 
> If not I guess that a valid basic auth header could be just :client_secret or in
> this case :gX1fBat3bV?
> 
> Might be good with a clarification here.
> 
> BR Kristoffer
> _______________________________________________
> OAuth mailing list
> OAuth@ietf.org
> https://www.ietf.org/mailman/listinfo/oauth