OIDC Authentik not working (Internal Server Error - OAUTH_INVALID_RESPONSE) #472
-
DescriptionI have trouble to working my OIDC configuration with Authentik provider. Now, when I try to login in WebAdmin, I have an error during OIDC callback: {
"code": 500,
"error": {
"name": "Internal Server Error",
"description": "An unknown error occurred"
}
}Container logs (OAUTH_INVALID_RESPONSE) : Here is my oidc:
issuer: "https://sso.example.tld/application/o/headscale/"
client_id: "XXXXXXXXXXXXXX"
client_secret: "XXXXXXXXXXXXXX"
headscale_api_key: "XXXXXXXXXXXXXX"
disable_api_key_login: true
token_endpoint_auth_method: client_secret_basicHeadplane Version0.6.1 Headscale Versionv0.27.1 |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
|
You need to
Good luck. |
Beta Was this translation helpful? Give feedback.
-
|
I have the same setup, which is working. Most likely the missing use_pkce: true is the issue. |
Beta Was this translation helpful? Give feedback.
-
|
This appears to be a configuration issue rather than a bug — the comments confirm that setting |
Beta Was this translation helpful? Give feedback.
I have the same setup, which is working.
Only differences in oidc:
token_endpoint_auth_method: "client_secret_post"
use_pkce: true
Most likely the missing use_pkce: true is the issue.