Authentik OIDC #501

Closed
opened 2025-10-31 15:13:37 -05:00 by GiteaMirror · 4 comments
Owner

Originally created by @jacksjam on GitHub (Aug 2, 2025).

I have configured OIDC to the docs available here:

But I receive an error after logging in and am passed back to the callback url:

{"error":"Failed to get Oauth token","trace":["Failed to parse server response","Invalid JSON web token: found 5 parts (expected 3) at line 1 column 6954"]}

Is this a configuration error or bug?

Originally created by @jacksjam on GitHub (Aug 2, 2025). I have configured OIDC to the docs available here: - https://integrations.goauthentik.io/infrastructure/komodo/ But I receive an error after logging in and am passed back to the callback url: {"error":"Failed to get Oauth token","trace":["Failed to parse server response","Invalid JSON web token: found 5 parts (expected 3) at line 1 column 6954"]} Is this a configuration error or bug?
Author
Owner

@krom commented on GitHub (Aug 2, 2025):

I've configured komodo with this

KOMODO_OIDC_ENABLED=true
KOMODO_OIDC_PROVIDER=https://auth.domain.com/application/o/komodo/
KOMODO_OIDC_CLIENT_ID=AAA # Alt: KOMODO_OIDC_CLIENT_ID_FILE
KOMODO_OIDC_CLIENT_SECRET=BBB # Alt: KOMODO_OIDC_CLIENT_SECRET_FILE

And created common app and OAuth2/OpenID provider in authentik

And it's working for me

looks like you are getting a broken token, there really should be 3 parts

@krom commented on GitHub (Aug 2, 2025): I've configured komodo with this ``` KOMODO_OIDC_ENABLED=true KOMODO_OIDC_PROVIDER=https://auth.domain.com/application/o/komodo/ KOMODO_OIDC_CLIENT_ID=AAA # Alt: KOMODO_OIDC_CLIENT_ID_FILE KOMODO_OIDC_CLIENT_SECRET=BBB # Alt: KOMODO_OIDC_CLIENT_SECRET_FILE ``` And created common app and OAuth2/OpenID provider in authentik And it's working for me looks like you are getting a broken token, there really should be 3 parts
Author
Owner

@jacksjam commented on GitHub (Aug 2, 2025):

Hm. Recreating the provider resolved the issue 🤷🏻‍♂️
Thank you

@jacksjam commented on GitHub (Aug 2, 2025): Hm. Recreating the provider resolved the issue 🤷🏻‍♂️ Thank you
Author
Owner

@MaxPelly commented on GitHub (Aug 8, 2025):

@jacksjam Im also getting this, do you have any idea what you could have done differently the second time you made the provider? I've recreated the application and provider in authentik several times and no dice. I have several other working OAuth2 providers so doesn't seem to be anything on the authentik side.

@MaxPelly commented on GitHub (Aug 8, 2025): @jacksjam Im also getting this, do you have any idea what you could have done differently the second time you made the provider? I've recreated the application and provider in authentik several times and no dice. I have several other working OAuth2 providers so doesn't seem to be anything on the authentik side.
Author
Owner

@jacksjam commented on GitHub (Aug 8, 2025):

@MaxPelly I did absolutely nothing differently just re created as per the docs https://integrations.goauthentik.io/infrastructure/komodo/

@jacksjam commented on GitHub (Aug 8, 2025): @MaxPelly I did absolutely nothing differently just re created as per the docs https://integrations.goauthentik.io/infrastructure/komodo/
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/komodo#501