How do you move an OAuth or OIDC deployment to post-quantum keys in stages?
An identity team running one authorization server with many relying parties should move signing keys in three phases. The OpenID Foundation proposes that first, individual relying parties switch to algorithms such as ML-DSA-44 and then restrict the algorithms they accept at runtime. Second, the deployment enters coexistence, where upgraded relying parties receive post-quantum signed ID Tokens while legacy ones stay on RS256 or ES256. Third, enforcement begins: the provider requires post-quantum algorithms and retires the classical ones. The Foundation also says classical key rotation can be shortened during the interim period.
The people affected are authorization server operators, relying party developers, and API owners who verify ID Tokens and access tokens. Each group has a different first task. Server operators publish the new keys and control which algorithm each client receives. Relying party developers check that their libraries parse the new key type. API owners confirm that their resource servers accept any key the discovery document publishes.
Start by confirming which clients can take a new algorithm. The Foundation's guidance is to use existing client metadata, such as id_token_signed_response_alg, to control the algorithm per client. That setting takes one value, so the issue thread on the openid/connect repository notes that ML-DSA-44 and RS256 must run concurrently, and relying parties would otherwise have to re-register. Most clients are statically registered, so the rollout needs out-of-band guidance. Ask each relying party whether its library handles the AKP key type defined in RFC 9964. One test reported in the same thread found that 19 of 46 libraries failed the whole key set when one ML-DSA key sat beside RSA and EC keys.
Size is the other planning item. An ML-DSA-44 public key is 1312 bytes and its signature is 2420 bytes, against 256 bytes each for RS256. Larger ID Tokens may exceed hard size limits in some proxies and headers, so test token sizes end to end. Keep recently retired keys in the jwks_uri document for a reasonable period, as OpenID Connect Core section 10.1.1 recommends. Confirm the exact interoperability status of each library version with its maintainers before you set a date for enforcement.
Where do OAuth and OIDC deployments use public-key signatures today?
This table lists each place an OAuth or OpenID Connect deployment uses public-key signatures or TLS, and marks whether a post-quantum key migration changes it. Read the rows marked as touched first, since they set the order of work. Rows marked as not touched still need checking, because they may depend on the same libraries or on TLS configuration.
| Location | What it signs or secures | Default or required algorithm | Touched by PQ migration |
|---|---|---|---|
| ID Token signing | The ID Token issued to relying parties | RS256 by default (OpenID Connect Core 3.1.3.7), unless the client registered another algorithm | Yes |
| jwks_uri key publication | The public keys relying parties use to verify ID Tokens | Keys listed by algorithm and key type; decommissioned keys should stay published for a reasonable period (Core 10.1.1) | Yes |
| Discovery signing algorithm list | Advertises id_token_signing_alg_values_supported to clients | RS256 MUST be included in the list (OpenID Connect Discovery 1.0) | Yes |
| private_key_jwt client authentication | Client assertions signed by the client's own key | No default when token_endpoint_auth_signing_alg_values_supported is omitted (RFC 8414), so publish the list explicitly | Yes |
| TLS 1.3 at authorization and token endpoints | Transport protection for codes, tokens and client credentials | TLS required by RFC 6749; key exchange and certificates are set by the server's TLS configuration | No |
| Access token signing (JWT profile) | Access tokens issued as signed JWTs for resource servers | Set by the authorization server; RFC 9068 requires resource servers to accept any published key | Not applicable |
What has the IETF and OpenID Foundation published for ML-DSA in OIDC?
The core standard for putting ML-DSA signatures into OAuth and OpenID Connect is RFC 9964, published by the IETF in May 2026 on the Standards Track. It defines the JOSE use of ML-DSA, the signature scheme specified in NIST FIPS 204, with the JOSE alg values ML-DSA-44, ML-DSA-65 and ML-DSA-87. It also defines a new JWK key type, AKP (Algorithm Key Pair), in which every key must carry an alg parameter and the public key sits in pub. The priv parameter is a 32 byte seed and must never appear in a public key. Engineers who issue or verify ID Tokens or JWKS documents should read this RFC first, because any library or identity server they run has to parse AKP keys before it can verify these signatures.
The OpenID Foundation's post "Post-Quantum OpenID Connect", dated 17 September 2026 and corrected in October 2026, links RFC 9964 as the IETF standard enabling ML-DSA signatures for OpenID Connect and treats that work as done. The same period brought RFC 10024, published in August 2026, which defines the TLS 1.3 hybrid groups X25519MLKEM768, SecP256r1MLKEM768 and SecP384r1MLKEM1024. Only X25519MLKEM768 is marked Recommended in the IANA registry. This matters for the transport layer under the token endpoints, which RFC 6749 requires to run over TLS. Check your TLS stack for these groups separately from the signing work.
The sources listed here do not say that any OpenID Connect ID Token profile is final beyond RFC 9964 and the Foundation's statement. Before planning a rollout, confirm which profile and client metadata behaviour your identity server implements, and test that against the versions you run. A JWKS test reported in openid/connect issue 2153 found that 19 of 46 JWT libraries with a real JWK Set parser failed the entire key set when it held one ML-DSA AKP key beside RSA and EC keys, so verify parser support in your own deployment before publishing such a key. RFC 9964 is the reference to check each library version against.
Which OAuth and OIDC libraries handle ML-DSA keys today?
JOSE libraries parse the JWK Set and verify signatures, so they decide whether a relying party can read an ML-DSA key at all. RFC 9964 defines the JWK key type "AKP" and the algorithm values "ML-DSA-44", "ML-DSA-65" and "ML-DSA-87", and a library that predates it may not recognize either. The sources do not name which JOSE libraries have shipped AKP support, so confirm this for each library you use.
- Parser behavior on unknown key types: In a JWKS test reported in openid/connect issue 2153, 19 of the 46 jwt.io libraries with a real JWK Set parser failed the whole key set when it held one ML-DSA key of type AKP next to RSA and EC keys.
- Per-key tolerance: Check whether the library skips keys it cannot use or rejects the entire document, since the second behavior breaks verification for RS256 and ES256 tokens that share the same JWKS.
- Required fields: RFC 9964 requires the alg parameter on every AKP key and places the public key in pub, so test with keys that carry both.
- Private material: The priv parameter is a 32 byte seed and must not appear in published public keys, so confirm the library does not require it for verification.
Check each library's changelog and its test suite for AKP or ML-DSA entries, and run the JWKS test against your exact library version before any rollover.
Identity servers publish the discovery document and the jwks_uri, and they choose the signing algorithm for each client. The OpenID Foundation proposes a three-phase migration, and the server must be able to publish an ML-DSA key alongside classical keys during the coexistence phase. The sources do not name specific identity server products that have shipped ML-DSA support, so ask each vendor directly.
- Per-client algorithm: OpenID Connect Core section 3.1.3.7 sets the ID Token alg to RS256 unless the client registered id_token_signed_response_alg, so the server must honor that metadata per client.
- Discovery consistency: RFC 9068 says signing key values in OAuth authorization server metadata and OIDC discovery must match when both are published.
- Mandatory RS256 entry: OpenID Connect Discovery 1.0 says RS256 MUST be included in id_token_signing_alg_values_supported, so an ML-DSA-only configuration may not conform to that line.
- Retired keys: OpenID Connect Core section 10.1.1 says the jwks_uri document SHOULD keep recently decommissioned signing keys for a reasonable period.
Request the server's ML-DSA release notes and a written statement of which algorithms appear in discovery output, and test a staging issuer before changing production metadata.
TLS protects the authorization endpoint, the token endpoint and the JWKS fetch. RFC 6749 requires TLS on the authorization and token endpoints, so the TLS stack in front of an identity system matters for token confidentiality even though it is separate from ID Token signing. RFC 10024 defines the TLS 1.3 hybrid groups, and the sources report what the IANA registry recommends.
- Hybrid groups defined: RFC 10024 defines X25519MLKEM768 (code point 4588), SecP256r1MLKEM768 (4587) and SecP384r1MLKEM1024 (4589).
- Recommendation marker: RFC 10024 marks only X25519MLKEM768 as Recommended in the IANA registry.
- Key share size: draft-ietf-uta-pqc-app-03 warns that large hybrid key shares can cause fragmentation, so test handshakes through your load balancers and proxies.
- Interoperability: Confirm that your clients and TLS libraries negotiate these groups for the versions you run, since the sources do not say which stacks have shipped them.
Check your TLS library's release notes for RFC 10024 group support, and confirm negotiation against your real clients before you rely on it.
What grows when ML-DSA-44 replaces RS256 in tokens and discovery?
Switching from RS256 to ML-DSA-44 changes the size of keys and signatures, the way algorithms are advertised, and how clients are configured. Each card covers one of these effects, so you can check token size limits, discovery metadata and client registration before you change a signing key.
Larger public keys and signatures
An ML-DSA-44 public key is 1312 bytes and its signature is 2420 bytes. RS256 uses a 256 byte public key and a 256 byte signature. The signature grows about ninefold, and that growth lands directly in every ID Token you issue. Check the byte size of your largest real tokens against the limits in your cookies, headers, proxies and client libraries before you enable the algorithm.
RFC 9964 sizesID Tokens that may exceed size limits
Because the signature is much larger, ID Tokens can exceed hard size limits in some deployments, such as header size caps at a load balancer, gateway or browser. Test the largest token your deployment issues, including custom claims, and confirm each intermediary accepts it. Do not assume a token that fits today will fit after the switch.
One signing algorithm per client
The id_token_signed_response_alg parameter takes one value. A relying party that moves to ML-DSA-44 while others stay on RS256 needs its own registration, or the two algorithms must run side by side in the server configuration. Plan the coexistence period by listing which clients are upgraded and which remain on RS256, and confirm how your server selects the signing algorithm for each.
Issue 2153 discussionOmitted algorithm lists carry no defaults
RFC 8414 says no default algorithms are implied when token_endpoint_auth_signing_alg_values_supported is omitted. Publish the algorithm list for private_key_jwt explicitly in your discovery document, including any ML-DSA values, so clients do not guess what your server accepts. Verify the published list against what your server actually validates.
RFC 8414 textKey thumbprints reduce repetition
RFC 9964 notes that key thumbprints can reduce repetition when large ML-DSA public keys would otherwise be sent many times. Where your deployment references keys by thumbprint in headers or metadata, you can avoid repeating the full 1312 byte key. Check that every consumer of your JWK Set resolves thumbprints as your configuration expects before you depend on this.
RFC 9964 textFragmentation from large hybrid key shares
draft-ietf-uta-pqc-app-03 warns that large hybrid key shares can cause fragmentation, and the same concern applies to the bigger payloads an ML-DSA migration produces. If packets or handshake messages are split, some middleboxes and clients may fail. Test your TLS path end to end, including the token and discovery endpoints, before you move production traffic.
Draft textWhat steps should an OAuth or OIDC team take, in order?
The sequence moves signing keys to post-quantum algorithms without breaking relying parties that cannot yet verify them. Each step produces an inventory, a compatibility result, an agreed client list, or a published key set that the next step depends on.
Inventory every authorization server, client and jwks_uri
Start by listing each authorization server, each registered client and the jwks_uri each one reads from, along with the id_token_signed_response_alg value set per client. Identity platform owners can export this from their admin consoles or client registration stores, and client owners can confirm their own settings. The step is done when every client has a recorded signing algorithm and every key set has a named owner. Clients that are statically registered need to be flagged now, because they cannot be updated by dynamic registration.
Test relying parties against AKP keys
Before any production key changes, load a test JWK Set that holds an ML-DSA key of type AKP next to the existing RSA and EC keys, and confirm that each relying party's JWKS parser still accepts the set and verifies tokens. Include the parsers inside libraries and gateways, not only the applications on top of them. A public test reported in the OpenID Connect working group issue tracker found that 19 of 46 jwt.io libraries with a real JWK Set parser failed the whole key set when one AKP key was present, so this test is a required gate. The step is done when each relying party has a pass or fail result recorded against a specific library version.
Agree which clients move first with owners
Work with vendors and client owners to decide the order in which clients move to post-quantum signing. Clients whose parsers passed the previous step, and whose owners can ship a change, are the natural first group. Clients that cannot yet process AKP keys stay on classical algorithms during coexistence. The output is a written list of clients, their target phase and a named owner for each. Because most clients are statically registered, the agreement should also cover who updates configuration and when.
Publish keys with consistent discovery metadata
Add the post-quantum key to the jwks_uri document alongside the existing keys, keeping the classical keys in place. Publish matching values in the discovery documents, so that the signing algorithm lists in authorization server metadata and in the OpenID Connect discovery document agree whenever both are published. Keep the RS256 entry in id_token_signing_alg_values_supported, because the Discovery specification requires it. Retain recently decommissioned signing keys in the document for a reasonable period, as OpenID Connect Core section 10.1.1 recommends. The step is done when a fresh fetch of each document shows the expected keys and algorithms, and a token signed with each key verifies.
Set the signing algorithm per client
Use the existing client metadata, id_token_signed_response_alg, to control which algorithm each client receives. Set it to the post-quantum algorithm only for clients that passed testing and were agreed in the earlier steps, and leave other clients on their current value. The specification defaults ID Token signing to RS256 when no value is registered, so clients without an explicit setting stay classical. Because a single client value accepts one algorithm, the deployment must keep ML-DSA-44 and RS256 running concurrently rather than forcing re-registration. The step is done when each client's configured value matches the agreed list.
Move through the three migration phases
Work through the phases the OpenID Foundation proposes in order. In phase one, individual relying parties switch to an algorithm such as ML-DSA-44, and the provider later restricts accepted algorithms at runtime. In phase two, upgraded relying parties receive post-quantum signed ID Tokens while legacy ones stay on RS256 or ES256. In phase three, the provider requires post-quantum algorithms and retires classical ones. Move to each phase only after the checks for the phase before it are recorded. Larger keys and signatures can exceed hard size limits in some places, so confirm header and token size limits at the gateways and proxies along each path before enforcement. The foundation also notes that classical key rotation can be shortened during the interim.
Record each change and review TLS hybrid groups
Keep a dated change record for each client, key and phase, showing what was changed, which tests were run and who approved the change. Include the token size observations from the earlier steps, since they inform later decisions. Separately, review the TLS layer that protects the authorization endpoint and token endpoint, which RFC 6749 requires to use TLS. RFC 10024 defines the hybrid groups X25519MLKEM768, SecP256r1MLKEM768 and SecP384r1MLKEM1024 for TLS 1.3, and marks only X25519MLKEM768 as Recommended in the IANA registry. Confirm which groups your TLS libraries and load balancers support, and keep this under review as the registry and library support change. The step is done when the change record is complete and the TLS review has a named owner.
Where do ML-DSA keys sit in the token issuance and verification flow?
The flow starts with the client sending its authorization request to the authorization endpoint over TLS, which the RFC 6749 requires for both the authorization and token endpoints. The authorization server then signs the ID Token with a key it publishes at jwks_uri, and the relying party reads the discovery document to find that key set and verifies the signature. During phase 2, the jwks_uri document holds both an AKP key for ML-DSA and the RS256 key, so each relying party's id_token_signed_response_alg decides which one signs its tokens. Check that every relying party can parse a key set containing AKP entries.
Token issuance and verification with ML-DSA (AKP) and RS256 keys coexisting in phase 2.
What downgrade and compatibility risks should a migration watch for?
Moving an OAuth or OpenID Connect deployment to post-quantum keys is mostly a question of what a client, provider or resource server will accept while the classical and post-quantum algorithms run side by side. The cards below cover where that coexistence can be forced down to classical signatures, where client configuration has to be changed out of band, and where key handling and token size need attention during the move.
Downgrade through per-request algorithm choice
Issue 2153 states that a client wanting only post-quantum algorithms cannot safely choose that per request, because doing so enables downgrade attacks. An authorization server that lets a request pick its signing algorithm can be pushed back to RS256 or ES256 by an attacker who alters the request. Check that the requested algorithm is bound to the registered client, not to a parameter the client sends at runtime. The per-request choice is the risk to remove.
Issue 2153 threadStatically registered clients need guidance
A participant in issue 2153 noted that most clients are statically registered, so the provider cannot switch them to post-quantum algorithms through a discovery change alone. Each client's id_token_signed_response_alg has to be updated by the people who run that client, which makes the rollout an out-of-band coordination task. List every registered client, its current algorithm and its owner before the first change. Most clients will need a human-led update, not a metadata toggle.
Issue 2153 threadShortened classical key rotation
The OpenID Foundation says classical key rotation can be shortened during the enforcement phase, when providers require post-quantum algorithms and retire classical ones. A shorter rotation interval means signing keys change more often, so relying parties and caches must pick up new keys promptly. Confirm that your jwks_uri is refreshed on a schedule that matches the new interval. Shorter rotation increases the number of key changes that clients must handle without failing.
OpenID Foundation PQ OIDCResource servers must accept any published key
RFC 9068 says resource servers must accept any key published in the server's metadata, and that signing key values in authorization server metadata and OpenID Connect discovery must agree when both are published. A resource server that pins one algorithm will reject tokens signed with the new key. Test each resource server against a token signed with ML-DSA before enforcement begins. Every resource server must accept every published key, not only the one it already uses.
RFC 9068Larger tokens and JWK Set parsing
RFC 9964 says ML-DSA produces significantly larger public keys and signatures than traditional algorithms, and the OpenID Foundation notes that ID Tokens may exceed hard size limits in some places. A JWK Set test reported in issue 2153 found that 19 of 46 libraries with a real JWK Set parser failed the entire key set when it held one ML-DSA key. Check your JWK Set parser and any header or cookie size limits before publishing the new key. Test the whole key set, not only the new key.
RFC 9964Which parts of OIDC post-quantum migration are still open?
The sources leave the hardest part of per-client algorithm selection unsettled. The OpenID Foundation says to control algorithms per client with existing metadata such as id_token_signed_response_alg, but issue 2153 points out that a client wanting only post-quantum algorithms cannot choose that per request without enabling downgrade attacks. The issue lists dynamic client registration, OpenID Connect RP Metadata Choices 1.0, CIMD and out-of-band configuration as candidate routes, and notes that most clients are statically registered. The sources do not say which of these will settle the question, so confirm with your identity server vendor and the working group whether a client can be restricted to post-quantum algorithms without re-registering it.
Issue 2153 also raises a concrete constraint on the response side. id_token_signed_response_alg takes a single value, so ML-DSA-44 and RS256 would need to run concurrently, and relying parties would otherwise have to re-register to move. The same issue lists agility requirements for new alg and kty values: they must not break existing ones, must allow coexistence during transitions, must support rapid key rotation, and must be downgrade resistant. The sources do not say whether the current specifications fully meet those requirements. Check how your provider publishes multiple signing keys in jwks_uri and whether your relying parties can parse an AKP key without failing the whole set.
The sources give no date for enforcement. The OpenID Foundation describes phase 3 as the point where providers require post-quantum algorithms and retire classical ones, but it does not say when that will happen, and the sources do not give a timeline. Plan on the basis that classical algorithms stay accepted during coexistence, and treat any enforcement date as something to confirm with the OpenID Foundation and your identity vendor rather than assume.
Common questions about moving OAuth and OIDC to post-quantum keys
What does a post-quantum signing key look like in JOSE?
A post-quantum signing key in JOSE uses the JWK key type AKP (Algorithm Key Pair), defined in RFC 9964. Every AKP key must carry an alg parameter naming the algorithm, such as ML-DSA-44, ML-DSA-65 or ML-DSA-87. The public key is carried in the pub parameter. The private key is carried in priv, which is a 32 byte seed and must never appear in a public key. The algorithms are defined by RFC 9964 as the JOSE use of ML-DSA from NIST FIPS 204. Confirm that your JOSE library parses AKP keys before you publish one, because support varies by library.
Will post-quantum ID Tokens get too large to send?
Probably yes, and the size difference is large. RFC 9964 Table 1 gives ML-DSA-44 a 1312 byte public key and a 2420 byte signature, compared with the 256 byte public key and 256 byte signature of RS256. ML-DSA-65 and ML-DSA-87 are larger still. RFC 9964 notes that these sizes can matter on constrained links. The OpenID Foundation warns that larger ID Tokens may exceed hard size limits in some places. Measure the token size with your real claims and check every proxy, load balancer, cookie store and header limit on the path before you enable a post-quantum algorithm for production clients. Key thumbprints can reduce repetition when keys are published.
Will existing OAuth and OIDC clients break after a post-quantum change?
They can, unless the change is staged. OpenID Connect Core section 3.1.3.7 says the ID Token algorithm defaults to RS256 unless a client registers another algorithm in id_token_signed_response_alg. The OpenID Foundation proposes phase 2 as coexistence, where upgraded relying parties receive PQ-signed ID Tokens while legacy ones stay on RS256 or ES256. Issue 2153 notes that id_token_signed_response_alg takes one value, so ML-DSA-44 and RS256 must run concurrently, or relying parties would have to re-register. OpenID Connect Discovery 1.0 requires RS256 in id_token_signing_alg_values_supported. Test each relying party against the new algorithm before you restrict the accepted set.
What should we ask an identity vendor about post-quantum signing?
Ask which RFCs and key types the product supports, and whether it can publish AKP keys in its jwks_uri document. Ask whether it can run ML-DSA and RS256 at the same time, and whether it can set the ID Token algorithm per client through id_token_signed_response_alg or per redirect URI. Ask how it keeps recently retired signing keys in the JWKS document, as OpenID Connect Core section 10.1.1 recommends. Ask what it does when a client wants only post-quantum algorithms, given that issue 2153 says per-request selection without downgrade protection enables downgrade attacks. Ask for the version and the test evidence for each answer. Vendors should confirm claims in writing against a stated version, because the sources do not say how each product behaves.
Should we move OAuth and OIDC to post-quantum keys in-house or with outside help?
The choice depends on the size of your estate and the staff you have. Work that tends to be in-house includes inventorying clients, reviewing your authorization server configuration and checking libraries. Work that often needs specialist help includes staged rollout across many statically registered clients, testing jwks_uri consumers, and coordinating with partners that cannot change their configuration quickly. DeployOpen plans, implements, tests and supports self-hosted identity platforms in the client's own infrastructure, and most engagements are fixed-scope, with scope and deliverables agreed in writing before work starts. A quote follows from that written scope. Ask any provider for a written scope that covers keys, clients, testing and rollback.
Does the NSA advisory on post-quantum migration apply to commercial organizations?
No. The NSA's December 2026 advisory, "Immediate Actions to Push Toward Post-Quantum," applies to national security systems, and CNSA 2.0 does too. Neither binds commercial organizations. A commercial organization can use the advisory as a reference, and may meet its requirements through a contract with a federal customer when that contract says so. Check the terms of your own federal contracts, and ask your counsel whether any requirement reaches your systems. Do not treat the advisory as a legal obligation for your OAuth or OIDC deployment unless a contract or regulator says it applies.
How DeployOpen works on this
DeployOpen plans and tests an OAuth or OpenID Connect move to post-quantum signing keys as fixed-scope engagements agreed in writing before work starts. The work covers the staged rollover, client compatibility, discovery documents and token lifetimes, with the results documented and handed to your team.
How we scope
- We inventory which clients use id_token_signed_response_alg and which are statically registered, since static clients need out-of-band configuration.
- We confirm which token consumers, libraries and JWKS parsers your relying parties run before choosing a signing algorithm.
- We agree the written scope, deliverables and timelines with you before any change to your authorization server.
How we build
- We configure the authorization server to publish ML-DSA and classical keys side by side in the jwks_uri document.
- We check discovery metadata and authorization server metadata for consistency where both are published, as RFC 9068 requires.
- We test a sample of relying parties against ML-DSA-44 tokens, including the size of larger ID Tokens against your header limits.
How we hand over
- We document the per-client algorithm settings, the key rollover sequence and the rollback steps for each phase.
- We provide a test record showing which clients and libraries accepted the new keys and which failed, so your team can act on each result.
- We deliver the configuration and runbooks in your own infrastructure, so your team keeps control of the identity system.
How we support
- Ongoing support, upgrades and continuous testing are available as a retainer, for example when phase 2 coexistence starts.
- We can retest after each phase change, including when you move from coexistence toward enforcement and retire classical keys.
- Ask any provider for a written scope that names the phase, the clients covered and the retest dates before you commit.

