Re: [OAUTH-WG] Resource Owner Password Credentials question/feedback
Eran Hammer-Lahav <eran@hueniverse.com> Tue, 28 June 2011 16:40 UTC
Return-Path: <eran@hueniverse.com>
X-Original-To: oauth@ietfa.amsl.com
Delivered-To: oauth@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 69CFD11E8153 for <oauth@ietfa.amsl.com>; Tue, 28 Jun 2011 09:40:52 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.999
X-Spam-Level:
X-Spam-Status: No, score=-1.999 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, J_CHICKENPOX_43=0.6]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id i4uYKlng39sH for <oauth@ietfa.amsl.com>; Tue, 28 Jun 2011 09:40:51 -0700 (PDT)
Received: from p3plex1out02.prod.phx3.secureserver.net (p3plex1out02.prod.phx3.secureserver.net [72.167.180.18]) by ietfa.amsl.com (Postfix) with SMTP id 894FE11E813D for <oauth@ietf.org>; Tue, 28 Jun 2011 09:40:51 -0700 (PDT)
Received: (qmail 29972 invoked from network); 28 Jun 2011 16:40:51 -0000
Received: from unknown (HELO smtp.ex1.secureserver.net) (72.167.180.20) by p3plex1out02.prod.phx3.secureserver.net with SMTP; 28 Jun 2011 16:40:51 -0000
Received: from P3PW5EX1MB01.EX1.SECURESERVER.NET ([10.6.135.19]) by P3PW5EX1HT002.EX1.SECURESERVER.NET ([72.167.180.20]) with mapi; Tue, 28 Jun 2011 09:40:38 -0700
From: Eran Hammer-Lahav <eran@hueniverse.com>
To: Brian Campbell <bcampbell@pingidentity.com>, George Fletcher <gffletch@aol.com>
Date: Tue, 28 Jun 2011 09:40:22 -0700
Thread-Topic: [OAUTH-WG] Resource Owner Password Credentials question/feedback
Thread-Index: Acw1rTq1GLjirUwcQBqmkHP3tRHcVwABNCJQ
Message-ID: <90C41DD21FB7C64BB94121FBBC2E7234475EAB13C1@P3PW5EX1MB01.EX1.SECURESERVER.NET>
References: <4E09F785.7050007@aol.com> <BANLkTikr3mBpeqDXvGtbAP6KOaXdZcO1gQ@mail.gmail.com>
In-Reply-To: <BANLkTikr3mBpeqDXvGtbAP6KOaXdZcO1gQ@mail.gmail.com>
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
Cc: "oauth@ietf.org" <oauth@ietf.org>
Subject: Re: [OAUTH-WG] Resource Owner Password Credentials question/feedback
X-BeenThere: oauth@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: OAUTH WG <oauth.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/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: Tue, 28 Jun 2011 16:40:52 -0000
Yep. Invalid grant is the right error code. EHL > -----Original Message----- > From: oauth-bounces@ietf.org [mailto:oauth-bounces@ietf.org] On Behalf > Of Brian Campbell > Sent: Tuesday, June 28, 2011 9:05 AM > To: George Fletcher > Cc: oauth@ietf.org > Subject: Re: [OAUTH-WG] Resource Owner Password Credentials > question/feedback > > invalid_grant seems like the appropriate error as the username and > password are the grant in the context of the Resource Owner Password > Credentials flow/grant type. > > On Tue, Jun 28, 2011 at 9:47 AM, George Fletcher <gffletch@aol.com> wrote: > > > > I'm working on spec'ing out a use of the Resource Owner Password > Credentials flow and in trying to map out possible error cases, realized that > there is no good error for the case that the resource owner's password > credentials are invalid. Section 4.3 of draft 16 references section 5.2 for > errors. The list of available errors in section 5.2 are... > > > > error > > REQUIRED. A single error code from the following: > > invalid_request > > The request is missing a required parameter, includes an > > unsupported parameter or parameter value, repeats a > > parameter, includes multiple credentials, utilizes more > > than one mechanism for authenticating the client, or is > > otherwise malformed. > > invalid_client > > Client authentication failed (e.g. unknown client, no > > client credentials included, multiple client credentials > > included, or unsupported credentials type). The > > authorization server MAY return an HTTP 401 > > (Unauthorized) status code to indicate which HTTP > > authentication schemes are supported. If the client > > attempted to authenticate via the "Authorization" request > > header field, the authorization server MUST respond with > > an HTTP 401 (Unauthorized) status code, and include the > > "WWW-Authenticate" response header field matching the > > authentication scheme used by the client. > > invalid_grant > > The provided authorization grant is invalid, expired, > > revoked, does not match the redirection URI used in the > > authorization request, or was issued to another client. > > unauthorized_client > > The authenticated client is not authorized to use this > > authorization grant type. > > unsupported_grant_type > > The authorization grant type is not supported by the > > authorization server. > > invalid_scope > > The requested scope is invalid, unknown, malformed, or > > exceeds the scope granted by the resource owner. > > > > I'm wondering if others have chosen one of these values to represent the > "invalid_credentials" use case. > > > > Thanks, > > George > > > > > > _______________________________________________ > > OAuth mailing list > > OAuth@ietf.org > > https://www.ietf.org/mailman/listinfo/oauth > > > _______________________________________________ > OAuth mailing list > OAuth@ietf.org > https://www.ietf.org/mailman/listinfo/oauth
- [OAUTH-WG] Resource Owner Password Credentials qu… George Fletcher
- Re: [OAUTH-WG] Resource Owner Password Credential… Brian Campbell
- Re: [OAUTH-WG] Resource Owner Password Credential… Eran Hammer-Lahav
- Re: [OAUTH-WG] Resource Owner Password Credential… Marcus Better
- Re: [OAUTH-WG] Resource Owner Password Credential… Lodderstedt, Torsten
- Re: [OAUTH-WG] Resource Owner Password Credential… Lodderstedt, Torsten
- Re: [OAUTH-WG] Resource Owner Password Credential… Eran Hammer-Lahav
- Re: [OAUTH-WG] Resource Owner Password Credential… Lodderstedt, Torsten
- Re: [OAUTH-WG] Resource Owner Password Credential… Eran Hammer-Lahav
- Re: [OAUTH-WG] Resource Owner Password Credential… Torsten Lodderstedt