Open Authentication Protocol | T. Lodderstedt, Ed. |
Internet-Draft | YES.com AG |
Intended status: Standards Track | V. Dzhuvinov |
Expires: September 16, 2018 | Connect2id Ltd. |
March 15, 2018 |
JWT Response for OAuth Token Introspection
draft-lodderstedt-oauth-jwt-introspection-response-00
This draft proposes an additional JSON Web Token (JWT) based response for OAuth 2.0 Token Introspection.
This Internet-Draft is submitted in full conformance with the provisions of BCP 78 and BCP 79.
Internet-Drafts are working documents of the Internet Engineering Task Force (IETF). Note that other groups may also distribute working documents as Internet-Drafts. The list of current Internet-Drafts is at https://datatracker.ietf.org/drafts/current/.
Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress."
This Internet-Draft will expire on September 16, 2018.
Copyright (c) 2018 IETF Trust and the persons identified as the document authors. All rights reserved.
This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (https://trustee.ietf.org/license-info) in effect on the date of publication of this document. Please review these documents carefully, as they describe your rights and restrictions with respect to this document. Code Components extracted from this document must include Simplified BSD License text as described in Section 4.e of the Trust Legal Provisions and are provided without warranty as described in the Simplified BSD License.
OAuth 2.0 Token Introspection specifies a method for a protected resource to query an OAuth 2.0 authorization server to determine the active state and meta-information of an OAuth 2.0 token. This allows deployments to implement identifier-based access tokens in an interoperable way.
The introspection endpoint as specified in OAuth 2.0 Token Introspection is a plain JSON object in "application/json" format. However, there are use cases where the resource server needs evidence about the fact the AS issued the access token and is liable for its contents. An example is a resource server using verified person data to create qualified electronic signatures.
In such use cases, it would be useful to return a signed JWT as introspection response. This draft extends the Token Introspection endpoint by the capability to return responses as JWTs.
The introspection endpoint may respond with a JWT in "application/jwt" format.
This JWT may contain all the members describes in Section 2.2. of [RFC7662].
The following is a non-normative example response (with line breaks for display purposes only):
HTTP/1.1 200 OK Content-Type: application/jwt eyJraWQiOiIxIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJaNU8zdXBQQzg4UXJBa ngwMGRpcyIsImF1ZCI6Imh0dHBzOlwvXC9wcm90ZWN0ZWQuZXhhbXBsZS5uZXRcL 3Jlc291cmNlIiwiZXh0ZW5zaW9uX2ZpZWxkIjoidHdlbnR5LXNldmVuIiwic2Nvc GUiOiJyZWFkIHdyaXRlIGRvbHBoaW4iLCJpc3MiOiJodHRwczpcL1wvc2VydmVyL mV4YW1wbGUuY29tXC8iLCJhY3RpdmUiOnRydWUsImV4cCI6MTQxOTM1NjIzOCwia WF0IjoxNDE5MzUwMjM4LCJjbGllbnRfaWQiOiJsMjM4ajMyM2RzLTIzaWo0Iiwid XNlcm5hbWUiOiJqZG9lIn0.HEQHf05vqVvWVnWuEjbzUnPz6JDQVR69QkxgzBNq5 kk-sK54ieg1STazXGsdFAT8nUhiiV1f_Z4HOKNnBs8TLKaFXokhA0MqNBOYI--2u nVHDqI_RPmC3p0NmP02Xmv4hzxFmTmpgjSy3vpKQDihOjhwNBh7G81JNaJqjJQTR v_1dHUPJotQjMK3k8_5FyiO2p64Y2VyxyQn1VWVlgOHlJwhj6BaGHk4Qf5F8DHQZ 1WCPg2p_-hwfINfXh1_buSjxyDRF4oe9pKy6ZB3ejh9qIMm-WrwltuU1uWMXxN6e S6tUtpKo8UCHBwLWCHmJN7KU6ZojmaISspdS23lELAlyw
The example response contains the following JSON document:
{ "sub": "Z5O3upPC88QrAjx00dis", "aud": "https://protected.example.net/resource", "extension_field": "twenty-seven", "scope": "read write dolphin", "iss": "https://server.example.com/", "active": true, "exp": 1419356238, "iat": 1419350238, "client_id": "l238j323ds-23ij4", "username": "jdoe" }
The authorization server determines what format to use for a particular introspection response. The decision can be based on the mechanisms described in this section.
The proposal is to register resource servers as clients and let them determine the response format by utilizing new parameters for dynamic client registration.
The new parameters follow the pattern established by the OpenID Connect Dynamic Client registration specification for configuring signing and encryption algorithms for the user info endpoint.
The following parameters are introduced by this specification:
Resource servers may register their public encryption keys using the jwks_uri or jwks metadata parameters.
We would like to thank ...
TBD
TBD
[OpenID.Registration] | NRI, Ping Identity and Microsoft, "OpenID Connect Dynamic Client Registration 1.0 incorporating errata set 1", Nov 2014. |
[RFC2119] | Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", BCP 14, RFC 2119, DOI 10.17487/RFC2119, March 1997. |
[RFC2246] | Dierks, T. and C. Allen, "The TLS Protocol Version 1.0", RFC 2246, DOI 10.17487/RFC2246, January 1999. |
[RFC7515] | Jones, M., Bradley, J. and N. Sakimura, "JSON Web Signature (JWS)", RFC 7515, DOI 10.17487/RFC7515, May 2015. |
[RFC7516] | Jones, M. and J. Hildebrand, "JSON Web Encryption (JWE)", RFC 7516, DOI 10.17487/RFC7516, May 2015. |
[RFC7518] | Jones, M., "JSON Web Algorithms (JWA)", RFC 7518, DOI 10.17487/RFC7518, May 2015. |
[RFC7519] | Jones, M., Bradley, J. and N. Sakimura, "JSON Web Token (JWT)", RFC 7519, DOI 10.17487/RFC7519, May 2015. |
[RFC7591] | Richer, J., Jones, M., Bradley, J., Machulak, M. and P. Hunt, "OAuth 2.0 Dynamic Client Registration Protocol", RFC 7591, DOI 10.17487/RFC7591, July 2015. |
[RFC7662] | Richer, J., "OAuth 2.0 Token Introspection", RFC 7662, DOI 10.17487/RFC7662, October 2015. |