Skip to content

[Bug] Mismatch in reported & used ID token signing algorithm #29

Closed

Description

@NotActuallyTerry

Description

I'm currently trying to use dev-oidc-toolkit in a development workflow.
I'm running into an issue where the openid-configuration reports the supported ID token signing algorithm is RS256. However, it uses RSA_OAEP to sign the token, causing a validation error.

Steps to reproduce

  1. Configure an application with the well-known endpoint
  2. Sign into the application through the standard flow

Expected behaviour

The ID token provided by dev-oidc-toolkit should be signed with the algorithm listed under id_token_signing_alg_values_supported (RS256) instead of RSA_OAEP

Environment details

Docker, ghcr.io/businesssimulations/dev-oidc-toolkit:latest (image ID sha256:ab624a468291f66cfd4c9989774327be688b950bfc5918d80cc84c925743ea81)

Activity

  1. added
    bug
    on Aug 22, 2026
  2. jthomperoo commented on Aug 22, 2026

    @jthomperoo
    Member

    Thanks for raising this.

    I've dug into this a bit, it looks like a bug in this project.

    I've used some AI to help me here to navigate this; it seems that we are signing the ID token with RS256; however we are encrypting the access token with RSA-OAEP.

    We use the OpenIddict defaults, so we were encrypting this with a private key that was never exposed (I think the intention here is for OpenIddict to handle both sides of the interaction).

    I've put together a PR that does this:

    • No longer encrypts the access token with RSA-OAEP
    • Switched the access token to RS256 signed JWTs by default
    • Added the ability to choose an access token format (signed JWT default, or 'opaque' which is just a random identifier to match Google style OIDC)

    If this looks OK and like it will solve your issue I will merge and cut a new version.

    See: #31

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions