If we choose to accommodate faulty clients and libraries at the protocol
level, we should at least set out to do so with non-breaking additions.
This I-D proposal introduces breaking behaviors for authorization servers,
clients, and RSs that presently use the existing cryptographic agility
mechanisms correctly.

We can't expect faulty clients and libraries to get fixed without giving
their developers or owners a reason to act. Commercial servers may offer
their customers a reversible opt-in, first to expose additional keys and
then, separately, to use them, the operators then decide when to "test"
their clients this way using their own timeline. Public servers could
pre-announce time-limited brownouts during which they'll expose the
additional key types in their jwks_uri. These approaches help identify
faulty software and prompt fixes without imposing permanent breaking
changes on working implementations.

Since we already have cryptographic agility, I don't think the
"Cryptographic Agility" title captures this proposal accurately. As
written, it risks becoming a permanent workaround that requires already
agile conform implementations to change to accommodate the stale ones. That
seems backwards to me on top of invalidating the existing agility we have
already defined and in use. The problem at hand isn't lack of crypto
agility, it's faulty client software. Let's try and address that first.

I see a non-breaking way of parameterizing the jwks_uri as a possibility
worth exploring though, it just has to allow existing servers that already
support agility and publish multiple key types for various algs to
participate as much as ones that don't (those are the ones with a bigger
pqc rollout problem).

Off the top of my head:


   - (a very quickly put together rough draft of this is attached, it is
   surprisingly short) AS adds `jwks_uris: [uri, uri2, uri3]` in addition to
   the existing `jwks_uri: uri` to its discovery, then mints its assertions
   with an additional `jku: uri2` jose header, a verifier that sees a jku must
   match it against the discovery.
      - jku is already defined and may coexist with existing JWS parameters
      like `kid`.
      - The obvious danger is that faulty clients will go out to
      attacker-supplied jku so we'd need this profiled properly.
      - ID Tokens as defined today "SHOULD NOT use the JWS or JWE x5u, x5c,
      *jku*" so this needs a profile regardless. The presence of jwks_uris
      is the AS indicator for clients to observe.
      - This should likely live in two places
         - OIDF Connect A/B WG for ID Tokens, JARM, Signed UserInfo
         - IETF OAuth WG for JWT Access Tokens, Signed Introspection
      - - or -
   - (having worked the option above i don't think the complexity of this
   is needed) define `jkuqs` (JWK Set URL query string) jws header parameter,
   an implementation aware of this header parameter will then replace the
   querystring part of the jwks_uri the AS supplied in its metadata with it.
   Request always goes to the same URL but enables parameterization.
      - The replace part is important because it allows a different
      starting point for each AS, an AS already publishing multiple
key types in
      its discovery can start with no qs in its discovery, a public AS like
      google can start with a QS that sets a filter to only expose RS256 keys.
      And most importantly the actual qs meaning and filtering can be
tailored by
      each AS according to its client carveout/opt-in needs.
      - The AS has to in addition explicitly advertise support. Verifiers
      shouldn’t start replacing queries on arbitrary existing jwks_uri
      values. Existing jwks_uri values might contain queries that identify
      tenants or routing parameters. A discovery flag for supporting query
      replacement would work.
   - - or - ?

Coming back to an additional authorization parameter to drive the client
opt-in, I think it's a bad idea - clients should be able to opt-in and
opt-out out of band through admin UIs (or with the existing agility
metadata) for their entire client_id. Out of band configuration could
also allow
a client identifier that's backed by more than a single software component
to opt-in only parts of it that can already do PQC based on the value of
the redirect_uri. Aaron suggested this when we revised
https://openid.net/post-quantum-openid-connect/ ("Per-Redirection URI
algorithms are also a possible approach").

Best,
*Filip*


On Tue, 17 Nov 2026 at 02:17, Breno de Medeiros <breno=
[email protected]> wrote:

> Available at
> https://datatracker.ietf.org/doc/draft-demedeiros-oidc-crypto-agility/
>
> The proposal introduces the ability for OIDC authorization metadata to
> publish the supported JWT signing algorithms and allows the client to
> request one of the supported types during the authorization request. In
> addition, it introduces a parameter to 'filter' algorithms from published
> key sets in the jws uri.
>
> The motivation here is to reduce friction for new algorithm adoption,
> particularly to facilitate PQC adoption in open federation contexts.
>
> --
>
> --Breno
> _______________________________________________
> OAuth mailing list -- [email protected]
> To unsubscribe send an email to [email protected]
>
Title: JWK Set URL Selection for OpenID Connect and OAuth
F. Skokan
Okta
November 18, 2026

JWK Set URL Selection for OpenID Connect and OAuth
openid-connect-jwk-set-url-selection-1_0

Abstract

This profile defines jwks_uris, an optional issuer metadata parameter listing JSON Web Key (JWK) Set URLs. An issuer can use the JWS jku Header Parameter to select one of these sets when signing a JWT, such as an OpenID Connect ID Token or a JWT access token.


Table of Contents

1. Introduction

An issuer can already publish keys for multiple signing algorithms at its jwks_uri. Some verifiers fail to process a JWK Set containing a key type they do not recognize, even when the key they need is present. Publishing a new key at a separate URL lets an issuer make it available to verifiers that can use it without changing the set consumed by other verifiers.

1.1. Requirements Notation and Conventions

The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in BCP 14 [RFC2119] [RFC8174] when, and only when, they appear in all capitals, as shown here.

2. Issuer Metadata

An issuer can advertise support for this profile in its OpenID Provider Metadata [OpenID.Discovery] or OAuth Authorization Server Metadata [RFC8414] using the following parameter.

jwks_uris

OPTIONAL. JSON array of strings. Each string is the absolute HTTPS URL of one of the issuer's JWK Set documents [JWK]. An issuer publishing this parameter MUST also publish jwks_uri and MUST include its exact value in the array. The order of the URLs has no significance.

As with jwks_uri, a set can contain keys for multiple purposes, including signing and encryption. A set can contain multiple key types, and a key can appear in more than one set. The procedures for publishing and using a JWK Set at an issuer's jwks_uri apply to each JWK Set advertised in jwks_uris.

3. Issuer Processing

To select a JWK Set, the issuer includes its advertised URL as the value of jku (JWK Set URL) in the JWS Protected Header, as defined in Section 4.1.2 of [JWS]. The selected set MUST contain the public key corresponding to the signing key. The issuer MUST include jku when the verification key is absent from the default set at jwks_uri.

As an exception to the recommendation in Section 2 of [OpenID.Core], an OpenID Provider advertising jwks_uris MAY use jku in the JWS Protected Header of an ID Token to identify one of the advertised URLs.

4. Verifier Processing

The verifier MUST use metadata for the expected issuer, validated in accordance with Section 4.3 of [OpenID.Discovery] or Section 3.3 of [RFC8414], as applicable. If the metadata omits jwks_uris, the verifier follows its existing validation rules. It MUST NOT use a URL supplied solely by a JOSE Header as a source of keys.

When the issuer advertises this profile, the verifier selects the JWK Set as follows. For a signed and encrypted JWT, this procedure applies to the inner JWS after decryption.

  1. If the JWS omits jku, use the JWK Set at the issuer's jwks_uri.
  2. If jku is present, it MUST be a string in the JWS Protected Header. Its value MUST be identical to an entry in the issuer's jwks_uris as defined in Section 2. The verifier MUST compare the strings for equality as specified in Section 4 of [RFC8414] before retrieving or using a cached JWK Set. If these requirements are met, the matching URL identifies the selected JWK Set. Otherwise, the verifier MUST reject the JWT.

5. Example

In this example the issuer continues to publish RSA and EC keys at its default URL. It publishes an ML-DSA public key [RFC9964] at a second URL. The relevant metadata members are shown below.

{
  "issuer": "https://as.example",
  "jwks_uri": "https://as.example/keys",
  "jwks_uris": [
    "https://as.example/keys",
    "https://as.example/keys/next"
  ]
}

A Client supporting this profile can receive an ID Token or a JARM response [JARM] with the following decoded JWS Protected Header.

{
  "alg": "ML-DSA-65",
  "kid": "mldsa-1",
  "jku": "https://as.example/keys/next"
}

A Resource Server supporting this profile can receive a JWT access token [RFC9068] with the following decoded JWS Protected Header.

{
  "typ": "at+jwt",
  "alg": "ML-DSA-65",
  "kid": "mldsa-1",
  "jku": "https://as.example/keys/next"
}

6. Security Considerations

A JWS header is attacker-controlled until the signature is verified. Accepting an arbitrary URL from the header can let an attacker substitute their own verification key or cause a verifier to make unintended network requests (Section 3.10 of [RFC8725]). When fetching a set selected by jku, the verifier MUST use the matched metadata URL.

7. IANA Considerations

TBD

8. References

8.1. Normative References

[JWK] Jones, M., "JSON Web Key (JWK)", RFC 7517, DOI 10.17487/RFC7517, May 2015.
[JWS] Jones, M., Bradley, J. and N. Sakimura, "JSON Web Signature (JWS)", RFC 7515, DOI 10.17487/RFC7515, May 2015.
[OpenID.Core] Sakimura, N., Bradley, J., Jones, M., de Medeiros, B. and C. Mortimore, "OpenID Connect Core 1.0", December 2023.
[OpenID.Discovery] Sakimura, N., Bradley, J., Jones, M. and E. Jay, "OpenID Connect Discovery 1.0", December 2023.
[RFC2119] Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", BCP 14, RFC 2119, DOI 10.17487/RFC2119, March 1997.
[RFC8174] Leiba, B., "Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words", RFC 8174, DOI 10.17487/RFC8174, May 2017.
[RFC8414] Jones, M., Sakimura, N. and J. Bradley, "OAuth 2.0 Authorization Server Metadata", RFC 8414, DOI 10.17487/RFC8414, June 2018.
[RFC8725] Sheffer, Y., Hardt, D. and M. Jones, "JSON Web Token Best Current Practices", RFC 8725, DOI 10.17487/RFC8725, February 2020.

8.2. Informative References

[JARM] Lodderstedt, T. and B. Campbell, "JWT Secured Authorization Response Mode for OAuth 2.0 (JARM)", November 2022.
[RFC9068] Bertocci, V., "JSON Web Token (JWT) Profile for OAuth 2.0 Access Tokens", RFC 9068, DOI 10.17487/RFC9068, October 2021.
[RFC9964] Prorock, M. and O. Steele, "ML-DSA for JSON Object Signing and Encryption (JOSE) and CBOR Object Signing and Encryption (COSE)", RFC 9964, DOI 10.17487/RFC9964, May 2026.

Appendix A. Notices

Copyright (c) 2026 The OpenID Foundation.

The OpenID Foundation (OIDF) grants to any Contributor, developer, implementer, or other interested party a non-exclusive, royalty free, worldwide copyright license to reproduce, prepare derivative works from, distribute, perform and display, this Implementers Draft, Final Specification, or Final Specification Incorporating Errata Corrections solely for the purposes of (i) developing specifications, and (ii) implementing Implementers Drafts, Final Specifications, and Final Specification Incorporating Errata Corrections based on such documents, provided that attribution be made to the OIDF as the source of the material, but that such attribution does not indicate an endorsement by the OIDF.

The technology described in this specification was made available from contributions from various sources, including members of the OpenID Foundation and others. Although the OpenID Foundation has taken steps to help ensure that the technology is available for distribution, it takes no position regarding the validity or scope of any intellectual property or other rights that might be claimed to pertain to the implementation or use of the technology described in this specification or the extent to which any license under such rights might or might not be available; neither does it represent that it has made any independent effort to identify any such rights. The OpenID Foundation and the contributors to this specification make no (and hereby expressly disclaim any) warranties (express, implied, or otherwise), including implied warranties of merchantability, non-infringement, fitness for a particular purpose, or title, related to this specification, and the entire risk as to implementing this specification is assumed by the implementer. The OpenID Intellectual Property Rights policy (found at openid.net) requires contributors to offer a patent promise not to assert certain patent claims against other contributors and against implementers. OpenID invites any interested party to bring to its attention any copyrights, patents, patent applications, or other proprietary rights that may cover technology that may be required to practice this specification.

Appendix B. Document History

[[ To be removed from the final document ]]

-00

  • Initial draft.

Author's Address

Filip Skokan Okta EMail: [email protected]
_______________________________________________
OAuth mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to