Re: [OAUTH-WG] Concerning OAuth introspection
Sergey Beryozkin <sberyozkin@gmail.com> Thu, 24 January 2013 10:56 UTC
Return-Path: <sberyozkin@gmail.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 48F2D21F84D7 for <oauth@ietfa.amsl.com>; Thu, 24 Jan 2013 02:56:37 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.599
X-Spam-Level:
X-Spam-Status: No, score=-3.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_LOW=-1]
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 g6+drGswjmvF for <oauth@ietfa.amsl.com>; Thu, 24 Jan 2013 02:56:36 -0800 (PST)
Received: from mail-lb0-f176.google.com (mail-lb0-f176.google.com [209.85.217.176]) by ietfa.amsl.com (Postfix) with ESMTP id C362121F84CA for <oauth@ietf.org>; Thu, 24 Jan 2013 02:56:35 -0800 (PST)
Received: by mail-lb0-f176.google.com with SMTP id s4so3743374lbc.21 for <oauth@ietf.org>; Thu, 24 Jan 2013 02:56:34 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=VxgL4Tmc8nRIsh6f43uRw6L4K+lNjAjTScj7+P4NJjs=; b=wyyrt6auDJu2axz/Z3wJsH9NnE7mbIvrXbuX3vwSVsHFWCMOMPtvQnnx3s6P6NZIJh oLUW+tDbbW2aavlgOVs/NOH8nCILjSb884YyQ45zXviS4qzcSpNV7QhFrtXwfw1B9P+2 dhl4LbVhqjFkNWMxa/4W0K7QfkzovCzMPUHpmZiv6ZhF404zPLr5bU2m7GGlsC6AdJcd lwcxPDIotp7bmpSOnWAlWvV2fRRzjpYM8UEohJxYhHSWfpvjpoFth9Y66D+3q1P0MPFt r3qKbf5/k1bSl5BrZasehHj56KNue0HTLo5m4YUXuFlu/c+FoCU0lD/UJkA7ZPVCUGK0 9sfQ==
X-Received: by 10.152.109.176 with SMTP id ht16mr1473503lab.2.1359024994473; Thu, 24 Jan 2013 02:56:34 -0800 (PST)
Received: from [192.168.2.5] ([89.100.140.13]) by mx.google.com with ESMTPS id td1sm9449007lab.17.2013.01.24.02.56.32 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 24 Jan 2013 02:56:33 -0800 (PST)
Message-ID: <5101135F.5060000@gmail.com>
Date: Thu, 24 Jan 2013 10:56:31 +0000
From: Sergey Beryozkin <sberyozkin@gmail.com>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20120430 Thunderbird/12.0.1
MIME-Version: 1.0
To: oauth@ietf.org
References: <CAHA4TYtCG+o0AZzh9e-3nb6gKLaWFeJuQfBxHVmUDH5Aj+TdpQ@mail.gmail.com> <50FEE1BF.5050200@mitre.org> <-6134323107835063788@unknownmsgid> <510005F5.6000004@mitre.org> <4a060479b5374e8ba58d3c9e1b15d917@BY2PR03MB041.namprd03.prod.outlook.com> <51001B5C.80407@mitre.org> <9a1d3f9d095e4f14b55ff99c9cf1799e@BY2PR03MB041.namprd03.prod.outlook.com> <51001D61.1060000@mitre.org> <1b7dbe92b69e4e51bbb0012f06381756@BY2PR03MB041.namprd03.prod.outlook.com> <51002656.2050900@mitre.org>
In-Reply-To: <51002656.2050900@mitre.org>
Content-Type: text/plain; charset="UTF-8"; format="flowed"
Content-Transfer-Encoding: 8bit
Subject: Re: [OAUTH-WG] Concerning OAuth introspection
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: Thu, 24 Jan 2013 10:56:37 -0000
On 23/01/13 18:05, Justin Richer wrote: > I am very confused, and I need someone to explain to me what I am > missing. Why won't it work to just pick one? What are people "already > stuck with" that this would affect? It's not like we're trying to unseat > a well-established protocol with a wide installation base here. > > How will giving people the choice between: > > /oauth/register?operation=client_register > /oauth/register?operation=client_update > /oauth/register?operation=rotate_secret > > > and: > > /oauth/client_register > /oauth/client_update > /oauth/rotate_secret I like this most, would rename it to say /oauth/client/registration or /oauth/client-registration etc and reword the spec such that it will let those who implement do it with one endpoint or many, whatever is preferred Cheers, Sergey > > > help multitenancy? How does it even affect that use case? Consider that > the base URL for all of these is completely up to the host environment > (nothing is bound to the root URL). Consider that clients still have to > know what the URL (or URLs) are, in either case. Consider that clients > still need to know how to manage all the parameters and responses. > > If anything, keeping it the way that it is with a single URL could be > argued to help multitenancy because setting up routing to multiple URL > endpoints can sometimes be problematic in hosted environments. However, > OAuth already defines a bunch of endpoints, and we have to define at > least one more with this extension, so I'm not convinced that having > three with specific functions is really any different from having one > with three functions from a development, deployment, and implementation > perspective. I can tell you from experience that in our own server code, > the difference is trivial. (And from OAuth1 experience, you can always > have a query parameter as part of your endpoint URL if you need to. You > might hate yourself for doing it that way, but nothing says your base > URL can't already have parameters on it. A client just needs to know how > to appropriately tack its parameters onto an existing URL, and any HTTP > client worth its salt will know how to augment a query parameter set > with new items.) > > The *real* difference between the two approaches is a philosophical > design one. The former overloads one URL with multiple functions > switched by a flag, the latter uses the URL itself as an implicit flag. > Under the hood, these could (and in many cases will) be all served by > the same chunks of code. The only difference is how this switch in > functionality is presented. > > > With that said, can somebody please explain to me how allowing *both* of > these as options simultaneously (what I understand Tony to be > suggesting) is a good idea, or how multitenancy even comes into play? > Because I am completely not seeing how these are related. > > Thanks, > -- Justin > > > > On 01/23/2013 12:46 PM, Anthony Nadalin wrote: >> It will not work the way you have it, as people do multi-tendency different and they are already stuck with the method that they have chosen, so they need the flexability, to restrict this is nuts as people won't use it. >> >> -----Original Message----- >> From: Justin Richer [mailto:jricher@mitre.org] >> Sent: Wednesday, January 23, 2013 9:27 AM >> To: Anthony Nadalin >> Cc: Nat Sakimura; Shiu Fun Poon;oauth@ietf.org >> Subject: Re: [OAUTH-WG] Concerning OAuth introspection >> >> I completely disagree with this assessment. Multi-tenancy will work just fine (or even better) if everyone uses the same pattern. Telling someone "it might be three different urls or it might be all one url with a parameter" is just asking for a complete disaster. What does the flexibility of allowing two approaches actually accomplish? >> >> You can argue about the merits of either approach, but having both as unspecified options for registration, which is meant to help things get going in a cold-boot environment, is just plain nuts. >> >> >> -- Justin >> >> >> >> On 01/23/2013 12:21 PM, Anthony Nadalin wrote: >>> Registration has to work in a multi-tenant environment so flexibility >>> is needed >>> >>> -----Original Message----- >>> From: Justin Richer [mailto:jricher@mitre.org] >>> Sent: Wednesday, January 23, 2013 9:18 AM >>> To: Anthony Nadalin >>> Cc: Nat Sakimura; Shiu Fun Poon;oauth@ietf.org >>> Subject: Re: [OAUTH-WG] Concerning OAuth introspection >>> >>> Because then nobody would know how to actually use the thing. >>> >>> In my opinion, this is a key place where this kind of flexibility is a very bad thing. Registration needs to work one fairly predictable way. >>> >>> -- Justin >>> >>> On 01/23/2013 12:14 PM, Anthony Nadalin wrote: >>>> Why not just have a physical and logical endpoint options >>>> >>>> -----Original Message----- >>>> From:oauth-bounces@ietf.org [mailto:oauth-bounces@ietf.org] On >>>> Behalf Of Justin Richer >>>> Sent: Wednesday, January 23, 2013 7:47 AM >>>> To: Nat Sakimura >>>> Cc: Shiu Fun Poon;oauth@ietf.org >>>> Subject: Re: [OAUTH-WG] Concerning OAuth introspection >>>> >>>> Which brings up an interesting question for the Registration doc: right now, it's set up as a single endpoint with three operations. We could instead define three endpoints for the different operations. >>>> >>>> I've not been keen to make that deep of a cutting change to it, but it would certainly be cleaner and more RESTful API design. What do others think? >>>> >>>> -- Justin >>>> >>>> >>>> On 01/22/2013 08:05 PM, Nat Sakimura wrote: >>>>> "Action" goes against REST principle. >>>>> I do not think it is a good idea. >>>>> >>>>> =nat via iPhone >>>>> >>>>> Jan 23, 2013 4:00、Justin Richer<jricher@mitre.org> のメッセージ: >>>>> >>>>>> (CC'ing the working group) >>>>>> >>>>>> I'm not sure what the "action/operation" flag would accomplish. The idea behind having different endpoints in OAuth is that they each do different kinds of things. The only "action/operation" that I had envisioned for the introspection endpoint is introspection itself: "I have a token, what does it mean?" >>>>>> >>>>>> Note that client_id and client_secret *can* already be used at this endpoint if the server supports that as part of their client credentials setup. The examples use HTTP Basic with client id and secret right now. Basically, the client can authenticate however it wants, including any of the methods that OAuth2 allows on the token endpoint. It could also authenticate with an access token. At least, that's the intent of the introspection draft -- if that's unclear, I'd be happy to accept suggested changes to clarify this text. >>>>>> >>>>>> -- Justin >>>>>> >>>>>> On 01/22/2013 01:00 PM, Shiu Fun Poon wrote: >>>>>>> Justin, >>>>>>> >>>>>>> This spec is looking good.. >>>>>>> >>>>>>> One thing I would like to recommend is to add "action"/"operation" >>>>>>> to the request. (and potentially add client_id and client_secret) >>>>>>> >>>>>>> So the request will be like : >>>>>>> token REQUIRED >>>>>>> operation (wording to be determine) OPTIONAL inquire (default) | revoke ... >>>>>>> resource_id OPTIONAL >>>>>>> client_id OPTIONAL >>>>>>> client_secret OPTIONAL >>>>>>> >>>>>>> And for the OAuth client information, it should be an optional parameter (in case it is a public client or client is authenticated with SSL mutual authentication). >>>>>>> >>>>>>> Please consider. >>>>>>> >>>>>>> ShiuFun >>>>>> _______________________________________________ >>>>>> 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 mailing list > OAuth@ietf.org > https://www.ietf.org/mailman/listinfo/oauth
- Re: [OAUTH-WG] Concerning OAuth introspection Justin Richer
- Re: [OAUTH-WG] Concerning OAuth introspection Nat Sakimura
- Re: [OAUTH-WG] Concerning OAuth introspection Justin Richer
- Re: [OAUTH-WG] Concerning OAuth introspection Justin Richer
- Re: [OAUTH-WG] Concerning OAuth introspection Sergey Beryozkin
- Re: [OAUTH-WG] Concerning OAuth introspection Anthony Nadalin
- Re: [OAUTH-WG] Concerning OAuth introspection Eve Maler
- Re: [OAUTH-WG] Concerning OAuth introspection Justin Richer
- Re: [OAUTH-WG] Concerning OAuth introspection Anthony Nadalin
- Re: [OAUTH-WG] Concerning OAuth introspection Justin Richer
- Re: [OAUTH-WG] Concerning OAuth introspection Eve Maler
- Re: [OAUTH-WG] Concerning OAuth introspection Eve Maler
- Re: [OAUTH-WG] Concerning OAuth introspection Justin Richer
- Re: [OAUTH-WG] Concerning OAuth introspection Mike Jones
- Re: [OAUTH-WG] Concerning OAuth introspection Anthony Nadalin
- Re: [OAUTH-WG] Concerning OAuth introspection Justin Richer
- Re: [OAUTH-WG] Concerning OAuth introspection Todd W Lainhart
- Re: [OAUTH-WG] Concerning OAuth introspection Phil Hunt
- Re: [OAUTH-WG] Concerning OAuth introspection Eve Maler
- Re: [OAUTH-WG] Concerning OAuth introspection Justin Richer
- Re: [OAUTH-WG] Concerning OAuth introspection Sergey Beryozkin
- Re: [OAUTH-WG] Concerning OAuth introspection Sergey Beryozkin
- Re: [OAUTH-WG] Concerning OAuth introspection Justin Richer
- Re: [OAUTH-WG] Concerning OAuth introspection Brian Campbell
- Re: [OAUTH-WG] Concerning OAuth introspection Sergey Beryozkin
- Re: [OAUTH-WG] Concerning OAuth introspection Justin Richer
- Re: [OAUTH-WG] Concerning OAuth introspection John Bradley
- Re: [OAUTH-WG] Concerning OAuth introspection Justin Richer
- Re: [OAUTH-WG] Concerning OAuth introspection Mike Jones
- Re: [OAUTH-WG] Concerning OAuth introspection Sergey Beryozkin
- Re: [OAUTH-WG] Concerning OAuth introspection Anthony Nadalin
- Re: [OAUTH-WG] Concerning OAuth introspection Mike Jones
- Re: [OAUTH-WG] Concerning OAuth introspection Justin Richer
- Re: [OAUTH-WG] Concerning OAuth introspection Sergey Beryozkin
- Re: [OAUTH-WG] Concerning OAuth introspection Justin Richer
- Re: [OAUTH-WG] Concerning OAuth introspection Sergey Beryozkin
- Re: [OAUTH-WG] Concerning OAuth introspection John Bradley
- Re: [OAUTH-WG] Concerning OAuth introspection Phil Hunt