Default OAuth2 providers to RS256 ID token signing #15
Reference in New Issue
Block a user
Delete Branch "benvin/oidc-rs256-signing"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Why: OAuth2 providers with no signing_key sign ID tokens with HS256, which RS256-only RP clients reject (
Failed to verify oidc token: unexpected signature algorithm "HS256"; expected ["RS256"]), breaking OIDC login for argocd/grafana/rancher/litellm/netbox/gitea.How:
data.authentik_certificate_key_pair.signingresolving the estate's RSA keypair by name (var.oauth2_signing_key_name, default the built-in "authentik Self-signed Certificate", confirmed RSA with a private key).signing_keyto that keypair viacoalesce, so all providers sign with RS256 while keeping the per-yamlsigning_keyoverride.Plan: 0 to add, 6 to change, 0 to destroy - the 6 oauth2 providers (argocd, gitea, grafana, litellm, netbox, rancher) get signing_key set in-place; nothing else touched. On apply all OIDC apps switch to RS256, so a re-login is needed.
https://claude.ai/code/session_015ur3i7D2azsMAWTSVABApv