Re: [OAUTH-WG] Proposal for text for section 2

Yaron Goland <yarong@microsoft.com> Wed, 07 July 2010 00:45 UTC

Return-Path: <yarong@microsoft.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 85F273A677C for <oauth@core3.amsl.com>; Tue, 6 Jul 2010 17:45:32 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.999
X-Spam-Level:
X-Spam-Status: No, score=-7.999 tagged_above=-999 required=5 tests=[BAYES_50=0.001, RCVD_IN_DNSWL_HI=-8]
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 KI1TcX+njuhU for <oauth@core3.amsl.com>; Tue, 6 Jul 2010 17:45:31 -0700 (PDT)
Received: from smtp.microsoft.com (mail1.microsoft.com [131.107.115.212]) by core3.amsl.com (Postfix) with ESMTP id 195903A6359 for <oauth@ietf.org>; Tue, 6 Jul 2010 17:45:31 -0700 (PDT)
Received: from TK5EX14MLTC102.redmond.corp.microsoft.com (157.54.79.180) by TK5-EXGWY-E801.partners.extranet.microsoft.com (10.251.56.50) with Microsoft SMTP Server (TLS) id 8.2.176.0; Tue, 6 Jul 2010 17:45:35 -0700
Received: from TK5EX14MBXC113.redmond.corp.microsoft.com ([169.254.6.44]) by TK5EX14MLTC102.redmond.corp.microsoft.com ([157.54.79.180]) with mapi id 14.01.0160.007; Tue, 6 Jul 2010 17:45:33 -0700
From: Yaron Goland <yarong@microsoft.com>
To: "Manger, James H" <James.H.Manger@team.telstra.com>, "oauth@ietf.org" <oauth@ietf.org>
Thread-Topic: Proposal for text for section 2
Thread-Index: AcsUm7O3+LYTofkOQ6CsKuFeuynp2ACcJnPgAAxyEYAAH/FooAAMQp/wADFXrDAAAfH0QAEdXNSA
Date: Wed, 07 Jul 2010 00:45:34 +0000
Message-ID: <7C01E631FF4B654FA1E783F1C0265F8C5F980EC4@TK5EX14MBXC113.redmond.corp.microsoft.com>
References: <7C01E631FF4B654FA1E783F1C0265F8C579CC0C3@TK5EX14MBXC117.redmond.corp.microsoft.com> <7C01E631FF4B654FA1E783F1C0265F8C579D0F31@TK5EX14MBXC117.redmond.corp.microsoft.com> <255B9BB34FB7D647A506DC292726F6E11265A5FC9D@WSMSG3153V.srv.dir.telstra.com> <7C01E631FF4B654FA1E783F1C0265F8C579D20CB@TK5EX14MBXC117.redmond.corp.microsoft.com> <255B9BB34FB7D647A506DC292726F6E11265B7E872@WSMSG3153V.srv.dir.telstra.com> <7C01E631FF4B654FA1E783F1C0265F8C579D76A1@TK5EX14MBXC117.redmond.corp.microsoft.com> <255B9BB34FB7D647A506DC292726F6E11265CBC110@WSMSG3153V.srv.dir.telstra.com>
In-Reply-To: <255B9BB34FB7D647A506DC292726F6E11265CBC110@WSMSG3153V.srv.dir.telstra.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
Subject: Re: [OAUTH-WG] Proposal for text for section 2
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, 07 Jul 2010 00:45:32 -0000

James, in theory I agree with you that we should use the authorization header. Unfortunately the reality of how implementations work prevent that as a viable option. So for corporate scenarios where we need SAML we will have to put the parameters into the request body. I do not see a viable way to standardize that outside the context of a particular protocol since it requires using the request body which is owned by each protocol. So we will have to extend OAuth directly to support this usage. It is of course the working group's choice if they want to include the mechanism directly in the OAuth spec or as an extension. 

As for the distinction between client assertion/client assertion type and assertion/assertion type it is identical to the difference between client id/client secret and username/password.

	Thanks,

		Yaron

> -----Original Message-----
> From: Manger, James H [mailto:James.H.Manger@team.telstra.com]
> Sent: Wednesday, June 30, 2010 9:18 PM
> To: Yaron Goland; oauth@ietf.org
> Subject: RE: Proposal for text for section 2
> 
> Yaron,
> 
> > how can you ding client assertions credentials for doing exactly what client
> basic credentials do?
> 
> I don't like client basic credentials in request bodies either. We should ditch
> that as well. I am sure I have dinged it in the past. It offers too little benefit
> for the cost of confusing APIs (& code) by mixing the content and
> authentication. And you lose a well-established discovery method: a
> response with WWW-Authenticate: BASIC ....
> 
> At least with basic credentials they can fit in a URI. Consequently, they don't
> prevent GET, HEAD, or DELETE requests, or even non-form PUT and POST
> requests in an API. Plus the Authorization header equivalent approach
> always works as well.
> [You can almost consider an "endpoint with client_id and client_secret" as a
> single base URI for the API -- and almost pretend that it doesn't compromise
> the HTTP model.]
> 
> 
> > How about we edit the client assertion proposal to include the ability to put
> assertions both in the HTTP authorization header as well as in the body? Then
> the assertion proposal will be 100% equivalent to the existing basic
> credentials proposal.
> 
> It is hardly 100% equivalent when the header option will fail in some cases
> (large assertions), and the other option fails for GETs, HEADs, DELETEs, and
> non-form requests.
> 
> 
> I would like OAuth2 to say: "The token API will often require client auth; a
> service MAY support any auth mechanisms; BASIC is a recommended
> mechanism; BASIC MUST be supported if the service issues shared secrets to
> clients".
> Using a client assertion would fit right in if it could be defined as a standalone
> HTTP auth mechanism (even with a option to use form params for POSTs of
> forms). This would be best as its own standalone spec.
> 
> If such a spec gets support (despite sometimes failing for non-POST or non-
> form requests), we are done. If such a spec isn't supported it suggests we
> should define a specific API that accepts client assertions, instead of an
> "orthogonal" auth mechanism (still best in its own spec).
> 
> 
> P.S. When are client_assertion/client_assertion_type used, as opposed to
> assertion/assertion_type? It is not clear to me from the existing and
> proposed spec text. I don't think the OAuth2 spec has enough context for
> the assertion parts. It would be better outside the OAuth2 spec, where more
> details could be provided about how it hooks up with the rest of a claims-
> based system.
> 
> --
> James Manger