Security and PrivacyAdditional Security Features

Post-Quantum Support

This page explains which parts of Descope use post-quantum cryptography today, how ML-DSA-44 session tokens work, and what stays classical. For how to manage signing keys, see JWK Rotation.

What Uses Post-Quantum Cryptography

AreaAlgorithmApplies to
TLS key exchangeHybrid X25519MLKEM768: X25519 combined with ML-KEM-768 (NIST FIPS 203)Connections to the Descope APIs and hosted pages, when the client also offers this key exchange. Clients that don't offer it use a classical key exchange.
Session and refresh token signaturesML-DSA-44 (NIST FIPS 204), used in JWTs as defined in RFC 9964Projects that add an ML-DSA-44 key, for clients that request ML-DSA-44 tokens. This is opt-in.

How ML-DSA-44 Sessions Work

An ML-DSA-44 key is an additional key next to your project's session signing key. It does not replace it. You add the key in the Console, in the Rotate Key dialog, or with POST /v1/mgmt/project/signkey/additional/create and the algorithm ML-DSA-44. Any project can add one, whatever the algorithm of its session signing key.

Adding an ML-DSA-44 key doesn't remove RS256 from verification. Your project keeps its RS256 key, and while it does, session tokens signed with it are still accepted. Removing RS256 isn't supported yet.

While the project has an unrevoked ML-DSA-44 key:

  • A client that sends the header x-descope-protocol-version: 2 gets ML-DSA-44 session and refresh tokens. Every other client keeps getting tokens signed with the project's session signing key.
  • The backend SDKs that support ML-DSA-44 send the header only after they have loaded an ML-DSA-44 key from /v3/keys, and never when you configured a fixed public key. The first login of a new backend client can therefore still get classical tokens.
  • Browser and mobile SDKs always send the header, so every login through them gets ML-DSA-44 tokens. They don't verify the tokens. They pass them to your backend.
  • ML-DSA-44 public keys are published only at __BaseURL__/v3/keys/__ProjectID__, together with the classical keys. /v1/keys, /v2/keys, .well-known/jwks.json, and OIDC discovery list only the classical keys.
  • An ML-DSA-44 session token is returned in the response body and is never set as a cookie. ML-DSA-44 signatures are about 2.4 KB, so the tokens are larger than classical ones.
  • If an ML-DSA-44 refresh token is too large for its cookie, that login gets tokens signed with the session signing key instead.

A project can have up to ten unrevoked ML-DSA-44 keys. Adding more returns error E131012. To opt out, revoke your ML-DSA-44 keys. Revoking the last one ends every ML-DSA-44 session: those users log in again and get classical tokens.

What Stays Classical

Only session and refresh tokens can be signed with ML-DSA-44. Everything else Descope signs keeps its classical algorithm, because the standards and the relying parties that consume these tokens don't support ML-DSA yet.

Token or signatureAlgorithm
OIDC and OAuth tokens (ID, access, refresh, and logout tokens), including Inbound Apps, third-party apps, and MCP serversRS256
FAPI 2.0 ID and logout tokensPS256
Microsoft Entra External Authentication Method ID tokensRS256
ID-JAG tokensRS256
Workload tokensRS256
Client assertions (Management API and Outbound Apps)RS256, or the algorithm you configured (such as RS512)
SAML assertions, responses, and logout messages (Descope as the identity provider)RSA, with the signature algorithm set in the SAML app configuration
SAML authentication requests (Descope as the service provider)RSA with SHA-256
Trusted device JWTsRS256
Webhook and HTTP connector signaturesHMAC, or the keys you configure for HTTP message signatures

Your project always keeps an RS256 key for these tokens, which is why its last RS256 key can't be revoked.

SDK Support

ML-DSA-44 support ships in the next release of every Descope SDK: backend SDKs verify ML-DSA-44 session tokens against /v3/keys, and client SDKs request them. SDKs may request ML-DSA-44, but Descope issues ML-DSA-44 tokens only for projects that opted in by adding an ML-DSA-44 key. Nothing changes for a project unless you add one.

Before you add an ML-DSA-44 key, make sure every service that verifies your tokens meets these requirements:

  • Node.js 24.7 or later.
  • PHP 8.4 or later, linked against OpenSSL 3.5 or later.
  • Ruby linked against OpenSSL 3.5 or later.
  • Python with cryptography 48 or later.
  • Java with BouncyCastle (bcprov-jdk18on) 1.79 or later.

Browser SDKs can request ML-DSA-44 only where Descope's edge allows the x-descope-protocol-version header. This is rolling out by region.

Verifying ML-DSA-44 Tokens

If you validate tokens yourself or forward them to other services:

  • Fetch keys from /v3/keys. The other key endpoints don't list ML-DSA-44 keys.
  • Accept a token only when its alg matches the alg of the key with the token's kid.
  • Don't forward ML-DSA-44 tokens to verifiers that read /v2/keys or .well-known/jwks.json. This includes API gateways, the Descope agent gateway, and SDKs without ML-DSA-44 support. They reject these tokens.
  • Add the ML-DSA-44 key only once every verifier in the chain supports it.

Signing Algorithms for Session Tokens

AlgorithmNotes
RS256RSA 2048-bit. The default.
RS384RSA 3072-bit, which meets CNSA 1.0.
ML-DSA-44Post-quantum, added next to one of the algorithms above.

ML-DSA-44 is not part of CNSA 1.0 or CNSA 2.0. CNSA 2.0 specifies ML-DSA-87.

What Is Not Covered

  • SAML and OIDC tokens, since those standards don't define post-quantum algorithms yet.
  • Tokens and signatures listed in What Stays Classical.
Was this helpful?

On this page