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
When both the signing key and the encryption key are applied in Authentik, the following error is output:
2025-02-24T15:53:18Z ERR user msg: failed to verify id_token error="failed to verify ID token: oidc: failed to unmarshal claims: invalid character '\\x0f' looking for beginning of value" code=403
Expected Behavior
It seems that the error occurs because the OIDC code does not decrypt the encrypted token.
Steps To Reproduce
After removing the encryption key and attempting the login again, it works as expected.
Is this a separate encryption key that is specific to Authentik? or is it part of any spec?
If it is part of a spec, we can have a look at implementing it, if it is only present in Authentik, we likely will not support it, or at least prioritise it.
That said, encryption is still a good idea. It helps keep the token's contents private and prevents sensitive data from being exposed. If the ID token includes anything sensitive, turning on encryption adds an extra layer of security.
So, while it’s not a requirement, enabling encryption is definitely worth considering, especially in high-security environments.
Is this a support request?
Is there an existing issue for this?
Current Behavior
When both the signing key and the encryption key are applied in Authentik, the following error is output:
Expected Behavior
It seems that the error occurs because the OIDC code does not decrypt the encrypted token.
Steps To Reproduce
After removing the encryption key and attempting the login again, it works as expected.
Login fail
Login success
Environment
Runtime environment
Anything else?
No response
The text was updated successfully, but these errors were encountered: