Re: [OAUTH-WG] draft-bradley-stateless-oauth-client-00

John Bradley <> Fri, 01 November 2013 18:18 UTC

Return-Path: <>
Received: from localhost (localhost []) by (Postfix) with ESMTP id 8E61F21E805D for <>; Fri, 1 Nov 2013 11:18:14 -0700 (PDT)
X-Virus-Scanned: amavisd-new at
X-Spam-Flag: NO
X-Spam-Score: -3.449
X-Spam-Status: No, score=-3.449 tagged_above=-999 required=5 tests=[AWL=0.151, BAYES_00=-2.599, RCVD_IN_DNSWL_LOW=-1]
Received: from ([]) by localhost ( []) (amavisd-new, port 10024) with ESMTP id 5h8xDCAaIFUD for <>; Fri, 1 Nov 2013 11:18:09 -0700 (PDT)
Received: from ( []) by (Postfix) with ESMTP id 0B39611E8169 for <>; Fri, 1 Nov 2013 11:18:07 -0700 (PDT)
Received: by with SMTP id e16so2634449qcx.34 for <>; Fri, 01 Nov 2013 11:18:07 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;; s=20130820; h=x-gm-message-state:content-type:mime-version:subject:from :in-reply-to:date:cc:message-id:references:to; bh=w9NG+yVAHlOJiZMTFsUllfXD+/bLj30sr58EVsEN2t8=; b=jNQHtgQ9v9tJlf0YzzEPKyIRjGemkISBpEymNIXEDex61Kpu1EVmrKEUSrTFJjIATV qrB9pffnVNyjYKEzqSXrQ3sepWWDSxddwd0YMzxE8MBBXvqBwAvuqFqofSjeu4mrS0vB LCj28qY+sO3867N6+hEgwM9/GHKGGYBrc7yRGVaaDQkh3P0Mfyb3HxMDJD9W+QIHvHI/ hdUIhKh57Y4vcLCc0SwaqgvrDREbs8OyD8JxyOR2QeCfYO4o8UzOGQC2+rRM336qlx/9 sqyl6PZzBILXOWDXnDPTuMDZR0+xV+smfTdGcRYwbssYLCK5E/KUganCDfZO0/BW/q5Y PVew==
X-Gm-Message-State: ALoCoQnD1ywrQAK4tN28Z2jWgZA8ndoqskMF/+S12N+tmTrB3tt8QWZeWmVD/eHK4M5y0QyP1awF
X-Received: by with SMTP id d15mr5807268qej.16.1383329887082; Fri, 01 Nov 2013 11:18:07 -0700 (PDT)
Received: from [] ( []) by with ESMTPSA id ge5sm19878156qeb.5.2013. for <multiple recipients> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 01 Nov 2013 11:18:04 -0700 (PDT)
Content-Type: multipart/signed; boundary="Apple-Mail=_2998B74F-5140-46A0-8F24-A5250CA8937C"; protocol="application/pkcs7-signature"; micalg=sha1
Mime-Version: 1.0 (Mac OS X Mail 7.0 \(1816\))
From: John Bradley <>
In-Reply-To: <>
Date: Fri, 1 Nov 2013 15:18:00 -0300
Message-Id: <>
References: <>
To: Hannes Tschofenig <>
X-Mailer: Apple Mail (2.1816)
Cc: " WG" <>
Subject: Re: [OAUTH-WG] draft-bradley-stateless-oauth-client-00
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: OAUTH WG <>
List-Unsubscribe: <>, <>
List-Archive: <>
List-Post: <>
List-Help: <>
List-Subscribe: <>, <>
X-List-Received-Date: Fri, 01 Nov 2013 18:18:14 -0000

The client_id would continue to be opaque to the client as it is now.  The AS can send a JWE using AES_128_CBC_HMAC_SHA_256 to encrypt and provide integrity if it is using a symmetric key (probably the simplest thing if we are talking about a single registration endpoint paired with a single AS)  In more complicated scenarios where perhaps a group of AS share a single registration endpoint you probably want to use asymmetric signature  then asymmetric encryption + integrity.     Those are deployment decisions that need to be documented but can be transparent to teh client.

Sorry to my mind it is obvious that the JWT would be integrity protected/signed for all clients including clients using asymmetric authentication to the token endpoint, and and signed+encrypted+integrity for clients using symmetric authentication.   That can be made clearer.

It might make sense to assume the issuer is just the AS but the AS can do that without the benefit of a spec now, as there is no interoperability issue.

The spec defining the JWT structure and signing and encryption methods has the most benefit when you don't have such a tight coupling between registration and AS.

That is likely why Justin and I didn't think a spec was necessary for the simple case other than to show people this is possible with the existing registration spec.

I am OK with strengthening the wording on signing/integrity protecting and encryption.  eg if a symmetric key is included the JWT MUST be encrypted.

I don't necessarily want to make any algorithm a must as that limits algorithm agility in the future.

Thanks for giving it a read, see you Sunday I expect.

John B.

On Nov 1, 2013, at 2:32 PM, Hannes Tschofenig <> wrote:

> Hi John,
> Hi all,
> I read your document and here a few remarks.
> In the dynamic client registration conference calls the topic of the stateless client was raised since there was the argument in the air that the current OAuth 2.0 RFC requires clients to be stateless due to the nature of the client identifier.
> It seems that you have found a way to make the client stateless with regard to the client identifier (i.e., that the authorization server does not need to store information about the client) by dumping state information in the client identifier itself. In your case you use a JWT, which is clever.
> Since RFC 6749 explicitly says that the client identifier string size is left undefined  and that the client should avoid making assumptions about the identifier size I don't see a problem with the proposed approach.
> Now, there is one issue that I am wondering about. The client identifier itself is not sufficient for authorizing the client (for confidential clients). Instead, there is typically the need to have a secret. Now, the secret is not conveyed in the JWT, at least not in the way you have define it. You could of course do that and there is a document that provides prior art, see
> The story essentially is that the structure (JWT in your case) includes the key but of course then you have to encrypt the entire blob.
> In the case of public clients wouldn't you want to mandate at least a digital signature or a keyed message digest for the JWT since otherwise there is the risk that the client changes some of the parameters to impersonate someone?
> A few other questions:
> * You write:
> "The issuer SHOULD sign the JWT with JWS in such a way that the signature can be verified by the authorization server.
> "
> I believe what you want to say is the following: The authorization creates the client identifier (using the JWT) and the client does not parse the received content since it treats it as opaque. However, the authorization server MUST be able to process and verify received client identifiers it previously created, which requires to apply cryptographic processing when a JWT is signed (using a JWS) and when a JWT is encrypted (using a JWE).
> (I ignore the issue that I believe the JWT needs to be signed [for public clients] and encrypted [for confidential clients].)
> * You should submit the document as draft-bradley-oauth; this makes it easier to find the document.
> * You write:
> "
> The issuer MAY encrypt the JWT with JWE.
> "
> I think you want to be stronger by saying that JWE MUST be used when the authorization server wants to apply confidentiality protection of the JWT. While the authorization server could use other techniques as well the purpose of the document is to describe one way to accomplish the goal and therefore it makes sense to be specific.
> I would even go as far as suggesting specific algorithms to use, as an example.
> * Although not stated directly I believe you allow the client identifier to be created by a party other than the authorization server. While this would theoretically make sense wouldn't it be useful to just assume that the issuer is the authorization server?
> Ciao
> Hannes
> _______________________________________________
> OAuth mailing list