Invalid ID Token with Authentik #1357

Closed
opened 2026-04-05 19:10:48 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @txwgnd on 6/13/2025

Hello Guys,

I'm trying so setup Pangolin with Authentik as the IDP.
When I try to login through Authentik I get presented this error message after Authentiks work is done and I'm redirected to Pangolin:

There was a problem connecting to Authentik. Please contact your administrator.
An error occurred

After looking into the logs of Pangolin the only thing I could find was this:

2025-06-13T00:07:41.087Z [^[[34mdebug^[[39m]: Verify session: Badger sent {"sessions":{},"originalRequestURL":"ht>
2025-06-13T00:07:41.088Z [^[[34mdebug^[[39m]: Request IP: {"requestIp":"94.134.108.202:17795"}
2025-06-13T00:07:41.088Z [^[[34mdebug^[[39m]: Client IP: {"clientIp":"94.134.108.202"}
2025-06-13T00:07:41.088Z [^[[34mdebug^[[39m]: Resource allowed because no auth
2025-06-13T00:07:41.328Z [^[[34mdebug^[[39m]: GET /api/v1/user
2025-06-13T00:07:41.434Z [^[[34mdebug^[[39m]: POST /api/v1/auth/idp/1/oidc/validate-callback
2025-06-13T00:07:41.452Z [^[[34mdebug^[[39m]: Verify session: Badger sent {"sessions":{},"originalRequestURL":"ht>
2025-06-13T00:07:41.453Z [^[[34mdebug^[[39m]: Request IP: {"requestIp":"172.18.0.1:47352"}
2025-06-13T00:07:41.453Z [^[[34mdebug^[[39m]: Client IP: {"clientIp":"172.18.0.1"}
2025-06-13T00:07:41.453Z [^[[34mdebug^[[39m]: Resource allowed because no auth
2025-06-13T00:07:41.863Z [^[[34mdebug^[[39m]: ID token {"idToken":"eyJhbGciOiJSU0EtT0FFUC0yNTYiLCJlbmMiOiJBMjU2Q0>
2025-06-13T00:07:41.864Z [^[[31merror^[[39m]: Invalid ID token
Stack: Error: Invalid ID token
at Module.decodeIdToken (file:///app/node_modules/arctic/dist/oidc.js:7:15)
at kg (file:///app/dist/server.mjs:31:143353)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
2025-06-13T00:08:51.788Z [^[[32minfo^[[39m]: Handling register message!
2025-06-13T00:08:51.796Z [^[[32minfo^[[39m]: Peer added successfully: {"peer":"Peer added successfully"}

There is no error or problem in the Authentik logs. Unfortunately I couldn't find aynthing about this on the internet. Has anyone an idea what is happening here?

Cheers
Tom

*Originally created by @txwgnd on 6/13/2025* Hello Guys, I'm trying so setup Pangolin with Authentik as the IDP. When I try to login through Authentik I get presented this error message after Authentiks work is done and I'm redirected to Pangolin: > There was a problem connecting to Authentik. Please contact your administrator. An error occurred After looking into the logs of Pangolin the only thing I could find was this: > 2025-06-13T00:07:41.087Z [^[[34mdebug^[[39m]: Verify session: Badger sent {"sessions":{},"originalRequestURL":"ht> 2025-06-13T00:07:41.088Z [^[[34mdebug^[[39m]: Request IP: {"requestIp":"94.134.108.202:17795"} 2025-06-13T00:07:41.088Z [^[[34mdebug^[[39m]: Client IP: {"clientIp":"94.134.108.202"} 2025-06-13T00:07:41.088Z [^[[34mdebug^[[39m]: Resource allowed because no auth 2025-06-13T00:07:41.328Z [^[[34mdebug^[[39m]: GET /api/v1/user 2025-06-13T00:07:41.434Z [^[[34mdebug^[[39m]: POST /api/v1/auth/idp/1/oidc/validate-callback 2025-06-13T00:07:41.452Z [^[[34mdebug^[[39m]: Verify session: Badger sent {"sessions":{},"originalRequestURL":"ht> 2025-06-13T00:07:41.453Z [^[[34mdebug^[[39m]: Request IP: {"requestIp":"172.18.0.1:47352"} 2025-06-13T00:07:41.453Z [^[[34mdebug^[[39m]: Client IP: {"clientIp":"172.18.0.1"} 2025-06-13T00:07:41.453Z [^[[34mdebug^[[39m]: Resource allowed because no auth 2025-06-13T00:07:41.863Z [^[[34mdebug^[[39m]: ID token {"idToken":"eyJhbGciOiJSU0EtT0FFUC0yNTYiLCJlbmMiOiJBMjU2Q0> 2025-06-13T00:07:41.864Z [^[[31merror^[[39m]: Invalid ID token Stack: Error: Invalid ID token at Module.decodeIdToken (file:///app/node_modules/arctic/dist/oidc.js:7:15) at kg (file:///app/dist/server.mjs:31:143353) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) 2025-06-13T00:08:51.788Z [^[[32minfo^[[39m]: Handling register message! 2025-06-13T00:08:51.796Z [^[[32minfo^[[39m]: Peer added successfully: {"peer":"Peer added successfully"} There is no error or problem in the Authentik logs. Unfortunately I couldn't find aynthing about this on the internet. Has anyone an idea what is happening here? Cheers Tom
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/pangolin#1357