You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug] Mismatch in reported & used ID token signing algorithm #29
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
Configure an application with the well-known endpoint
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)
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.
Activity
jthomperoo commentedon Aug 22, 2026
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:
If this looks OK and like it will solve your issue I will merge and cut a new version.
See: #31