Re: [OAUTH-WG] User-agent flow and pre-registered redirect_uri
Justin Richer <jricher@mitre.org> Fri, 11 June 2010 15:52 UTC
Return-Path: <jricher@mitre.org>
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 0C61428C0EE for <oauth@core3.amsl.com>; Fri, 11 Jun 2010 08:52:36 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.442
X-Spam-Level:
X-Spam-Status: No, score=-4.442 tagged_above=-999 required=5 tests=[AWL=-1.043, BAYES_50=0.001, J_CHICKENPOX_36=0.6, RCVD_IN_DNSWL_MED=-4]
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 euWYSOFzFwcw for <oauth@core3.amsl.com>; Fri, 11 Jun 2010 08:52:34 -0700 (PDT)
Received: from smtp-bedford.mitre.org (smtp-bedford.mitre.org [129.83.20.191]) by core3.amsl.com (Postfix) with ESMTP id 056233A6966 for <oauth@ietf.org>; Fri, 11 Jun 2010 08:52:33 -0700 (PDT)
Received: from smtp-bedford.mitre.org (localhost.localdomain [127.0.0.1]) by smtp-bedford.mitre.org (8.13.1/8.13.1) with ESMTP id o5BFqaJ1014393 for <oauth@ietf.org>; Fri, 11 Jun 2010 11:52:36 -0400
Received: from imchub1.MITRE.ORG (imchub1.mitre.org [129.83.29.73]) by smtp-bedford.mitre.org (8.13.1/8.13.1) with ESMTP id o5BFqaJD014385; Fri, 11 Jun 2010 11:52:36 -0400
Received: from [129.83.50.65] (129.83.50.65) by imchub1.MITRE.ORG (129.83.29.73) with Microsoft SMTP Server id 8.2.254.0; Fri, 11 Jun 2010 11:52:35 -0400
From: Justin Richer <jricher@mitre.org>
To: Christian Scholz <cs@comlounge.net>
In-Reply-To: <4C1257B5.9080706@comlounge.net>
References: <AANLkTingSGlJNZ5e_stPd1qU5I4gfbh3rQhqYUmqXvdB@mail.gmail.com> <C833CEB4.6B81%cmortimore@salesforce.com> <AANLkTinVQEPBVzmiHEGgHhzaILL0nRSvZpjIlrVEJwTw@mail.gmail.com> <AANLkTil1j7vl8PU2tgCzlWY0U6KiWPmRKiVOxvsctB00@mail.gmail.com> <AANLkTimCL-O7RIsUlt_zGDfkEEYb9w4_sPh6zxCMBsf0@mail.gmail.com> <AANLkTin7B9pPgSu3cNlJGkp_gCed-5aPGRZalzXd2Wg8@mail.gmail.com> <4C124A70.2000002@aol.com> <1276268753.31840.50.camel@localhost.localdomain> <4C1257B5.9080706@comlounge.net>
Content-Type: text/plain; charset="UTF-8"
Date: Fri, 11 Jun 2010 11:52:35 -0400
Message-ID: <1276271555.31840.61.camel@localhost.localdomain>
MIME-Version: 1.0
X-Mailer: Evolution 2.28.3
Content-Transfer-Encoding: 7bit
Cc: "oauth@ietf.org" <oauth@ietf.org>
Subject: Re: [OAUTH-WG] User-agent flow and pre-registered redirect_uri
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: Fri, 11 Jun 2010 15:52:36 -0000
One missing point from this is that the same client ID could be used for different instances for the same user. That's how google's xoauth_display_name was used, and that's what I'm proposing as an extension to the capability below. Unregistered clients are a separate, but slightly related, issue, and the handshake proposal outlined here might help that (or the dynamic binding proposed as part of OpenID Connect). But I think that we might be better served to have a means that doesn't require registration at all. I think we can get the functionality of just using "anonymous" as the client id without requiring all clients to do so, again like a browser user agent string can do today. It can't be trusted as authoritative, but can be used as a hint. And of course, any particular AS may choose to require registration still. Maybe we need to drill in to the pros/cons of requiring registration, allowing ad-hoc registration, and allowing unknown client ids before we can answer this question. -- Justin On Fri, 2010-06-11 at 11:35 -0400, Christian Scholz wrote: > Hi! > > Am 11.06.10 17:05, schrieb Justin Richer: > > Along these lines, I'd like to propose an extension for per-client > > instance information to be passed from a client to the server. Things > > like a human-readable client name/description, instance name/description > > (could be tied to host name, ip, label like "home" or "Work"), and even > > something like a display icon. This is especially useful for things like > > device clients (where I might have a bunch of devices with the same > > client ID) or unregistered clients, where the client id string ends up > > being closer to a user-agent string from a browser than a trusted > > identifier, especially since it can't have a reliable secret. > > We have the need for dynamic binding of clients in the User Managed > Access group (UMA) as well. I did look into OpenID Connect but felt that > reusing an OAuth flow based on a different type is maybe mixing things a > bit too much. To me using a flow means that in the end usually > you end up with an access token which here is not the case. Especially I > don't like the reuse of the token URI as IMHO it's better to use > separate endpoints for different APIs. > > I thus went along and crafted some simple handshake in the UMA > specification which I also wanted to move out into a single > specification over the next days. > > You can find it here: > > http://kantarainitiative.org/confluence/display/~christianscholz/Step+1+experimental+version+v1 > > under "Dynamic binding of OAuth clients". > > It is a simple handshake where you provide a JSON formatted client > descriptor containing the information you describe above and the results > is a set of client credentials plus optionally additional information > (in UMA we eventually need to pass back more information like additional > endpoints). > > We also discussed it yesterday on the UMA conference call and the > consensus was that it's better to let the server assign a client id so > you have a more unique identifier. > > Moreover it is probably easier to send the client id as intended and not > all the relevant client information on every request. > > Other options would be to use some URL as client id and providing an XRD > document describing the client via hostmeta. > > Any feedback on what people's requirements and thoughts on the issue are > welcome! > > -- Cristian > > > > Speaking of which, the spec is relatively quiet on registered vs. > > unregistered clients. I'd like to see the WG maybe pull together some > > guidance on this topic? I'm not sure what form that would take though, > > an information note that sits along with the RFC? A page on the oauth > > wiki? Basically, I think we can get away from the anonymous/anonymous > > hack that Google used with OAuth1 since we're not requiring the client > > secret for signing anymore. Thoughts? > > > > -- Justin > > > > > > On Fri, 2010-06-11 at 10:38 -0400, George Fletcher wrote: > >> Makes perfect sense as we have the same model for our clients & > >> tokens:) > >> > >> The one use case we've encountered is that this model revokes the > >> tokens for all clients with the same client_id. So if I've got three > >> of the same client installed (on three computers) and they likely all > >> have the same client_id, then revoking that client_id affects all > >> three clients. I think this is a reasonable trade-off. Especially > >> since revoking authorizations will be an infrequent event. > >> > >> Thanks, > >> George > >> > >> On 6/10/10 11:35 AM, Andrew Arnott wrote: > >>> Thanks Marius. > >>> > >>> I've answered your question below. > >>> > >>> On Wed, Jun 9, 2010 at 9:35 AM, Marius Scurtescu > >>> <mscurtescu@google.com> wrote: > >>> > I've always considered an authorization as a tuple of > >>> > client_id,user,scope,issue_date. If an authorization has > >>> been approved, and > >>> > another request for authorization for a subset of the > >>> scope previously > >>> > issued comes in, the auth server can skip the interactive > >>> user authorization > >>> > and just approve the request since nothing new is being > >>> issued. > >>> > >>> > >>> The tuple seems right, except for the issue date, why would > >>> you add that? > >>> > >>> The issue_date enables to scenarios: expiring tokens and token > >>> revocation. Here's how, for each scenario: > >>> > >>> Obviously to know if a token has expired you need to know when it > >>> was issued. Or, you can forget the issue date and just store the > >>> expiration date in the token. I choose to go with an issue date > >>> (plus an optional expected lifetime) because it gives more ability > >>> in the future to say "oops, we had a security weakness in all tokens > >>> issued prior to [date], so let's consider all earlier tokens > >>> invalid." It's harder to say that when all you have are expiration > >>> dates because you don't know how old the token is. This is just the > >>> way I chose to do it, but I know there are other ways. > >>> > >>> Now let's look at how you revoke issued tokens. One of the nice > >>> things enabled by OAuth 2.0 is that the authorization server and > >>> resource server never have to store tokens if they are appropriate > >>> signed by the auth server. This is great because (among other > >>> things) clients with little-to-no ability to persistently store > >>> tokens may ask for tokens frequently, and that could bog down an > >>> auth server with storing all those issued tokens. But how can a > >>> user revoke a previously authorized token if no one but the client > >>> knows what the tokens are? (thought question) My solution to this > >>> is that instead of thinking about revoking tokens, the user revokes > >>> authorizations. The user goes through his account on the > >>> authorization server and sees a list of clients and what they are > >>> authorized to do. Note that this only requires the auth server to > >>> store this authorization tuple -- not the actual issued tokens. If > >>> the user clicks "revoke" on one of these authorizations, that row is > >>> deleted in the database. Issued tokens (both refresh and access > >>> tokens) have this same tuple encoded in them. > >>> Now, when a refresh token is used to obtain a new short-lived access > >>> token (and you could do this on every access token use as well if > >>> you wanted) the token is of course signature-validated, but it is > >>> also checked that the authorization tuple has a matching tuple in > >>> the auth server's database. If it's missing, then that > >>> authorization has been revoked and the token is thereby invalidated. > >>> So why the issue date? Because suppose the user has authorized a > >>> client and then that client's tokens are compromised (stolen > >>> computer perhaps). The user will of course revoke authorization for > >>> that client. The user then gets a new copy of that client (perhaps > >>> a new computer) and authorizes it. Whoops. Now all those > >>> invalidated tokens are valid again because the authorization tuple > >>> exists. Except now the issue date on the authorization on the auth > >>> server is newer than in the refresh token on the invalidated client. > >>> That's why issue date is such a critical part of an authorization > >>> tuple. Any token issued prior to the earliest authorization on > >>> record at the auth server represents a revoked authorization, and > >>> without an issue date in the tuple there's no way to recognize that. > >>> > >>> At least that's the way I'm seeing it. I hope that makes sense. > >>> > >>> > >>> _______________________________________________ > >>> 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 > > > -- > Christian Scholz Homepage: http://comlounge.net > COM.lounge GmbH blog: http://mrtopf.de/blog > Hanbrucher Str. 33 Skype: HerrTopf > 52064 Aachen Video Blog: http://comlounge.tv > Tel: +49 241 400 730 0 E-Mail cs@comlounge.net > Fax: +49 241 979 00 850 IRC: MrTopf, Tao_T > > Podcasts: > Der OpenWeb-Podcast (http://openwebpodcast.de) > Data Without Borders (http://datawithoutborders.net) > Politisches: http://politfunk.de/ > Technical: http://comlounge.tv/ > > _______________________________________________ > OAuth mailing list > OAuth@ietf.org > https://www.ietf.org/mailman/listinfo/oauth
- [OAUTH-WG] User-agent flow and pre-registered red… Andrew Arnott
- Re: [OAUTH-WG] User-agent flow and pre-registered… Andrew Arnott
- Re: [OAUTH-WG] User-agent flow and pre-registered… Marius Scurtescu
- Re: [OAUTH-WG] User-agent flow and pre-registered… Chuck Mortimore
- Re: [OAUTH-WG] User-agent flow and pre-registered… Dick Hardt
- Re: [OAUTH-WG] User-agent flow and pre-registered… Marius Scurtescu
- Re: [OAUTH-WG] User-agent flow and pre-registered… Chuck Mortimore
- Re: [OAUTH-WG] User-agent flow and pre-registered… Marius Scurtescu
- Re: [OAUTH-WG] User-agent flow and pre-registered… Andrew Arnott
- Re: [OAUTH-WG] User-agent flow and pre-registered… Marius Scurtescu
- Re: [OAUTH-WG] User-agent flow and pre-registered… Andrew Arnott
- Re: [OAUTH-WG] User-agent flow and pre-registered… Marius Scurtescu
- Re: [OAUTH-WG] User-agent flow and pre-registered… Thomas Hardjono
- Re: [OAUTH-WG] User-agent flow and pre-registered… Andrew Arnott
- Re: [OAUTH-WG] User-agent flow and pre-registered… George Fletcher
- Re: [OAUTH-WG] User-agent flow and pre-registered… Torsten Lodderstedt
- Re: [OAUTH-WG] User-agent flow and pre-registered… Justin Richer
- Re: [OAUTH-WG] User-agent flow and pre-registered… Christian Scholz
- Re: [OAUTH-WG] User-agent flow and pre-registered… George Fletcher
- Re: [OAUTH-WG] User-agent flow and pre-registered… Justin Richer
- Re: [OAUTH-WG] User-agent flow and pre-registered… Marius Scurtescu
- Re: [OAUTH-WG] User-agent flow and pre-registered… David Recordon
- Re: [OAUTH-WG] User-agent flow and pre-registered… Marius Scurtescu
- Re: [OAUTH-WG] User-agent flow and pre-registered… George Fletcher
- Re: [OAUTH-WG] User-agent flow and pre-registered… Marius Scurtescu
- Re: [OAUTH-WG] User-agent flow and pre-registered… George Fletcher
- Re: [OAUTH-WG] User-agent flow and pre-registered… Marius Scurtescu
- Re: [OAUTH-WG] User-agent flow and pre-registered… George Fletcher
- Re: [OAUTH-WG] User-agent flow and pre-registered… Marius Scurtescu
- Re: [OAUTH-WG] User-agent flow and pre-registered… George Fletcher
- Re: [OAUTH-WG] User-agent flow and pre-registered… Eran Hammer-Lahav