[Bug]: OIDC userinfo_endpoint must be configured #568

Closed
opened 2026-02-04 20:23:29 +03:00 by OVERLORD · 5 comments
Owner

Originally created by @flaxaurial on GitHub (Sep 11, 2024).

Where is the problem occurring?

I encountered the problem while interacting with the server (Backend)

What browsers are you seeing the problem on?

No response

Current behaviour

After setting up OIDC with all the required information, an error logs

2024-09-11 08:02:55 [E] A hook (oidc) failed to load!

Followed by

2024-09-11 08:02:55 [E] Failed to lift app: Unexpected token < in JSON at position 0

Are there any solutions to this? I've tried rebooting the server.

Desired behaviour

No response

Steps to reproduce

None.

Other information

No response

Originally created by @flaxaurial on GitHub (Sep 11, 2024). ### Where is the problem occurring? I encountered the problem while interacting with the server (Backend) ### What browsers are you seeing the problem on? _No response_ ### Current behaviour After setting up OIDC with all the required information, an error logs `2024-09-11 08:02:55 [E] A hook (`oidc`) failed to load!` Followed by `2024-09-11 08:02:55 [E] Failed to lift app: Unexpected token < in JSON at position 0` Are there any solutions to this? I've tried rebooting the server. ### Desired behaviour _No response_ ### Steps to reproduce None. ### Other information _No response_
OVERLORD added the help wanted label 2026-02-04 20:23:29 +03:00
Author
Owner

@flaxaurial commented on GitHub (Sep 11, 2024):

I've managed to fix the above error, however now I'm getting

2024-09-11 08:50:25 [W] Error while exchanging OIDC code: TypeError: userinfo_endpoint must be configured on the issuer

@flaxaurial commented on GitHub (Sep 11, 2024): I've managed to fix the above error, however now I'm getting `2024-09-11 08:50:25 [W] Error while exchanging OIDC code: TypeError: userinfo_endpoint must be configured on the issuer`
Author
Owner

@meltyshev commented on GitHub (Sep 13, 2024):

Hi! I don’t have enough knowledge of OIDC or what the error might mean in your case, but I’ve added a "help wanted" label and hopefully someone else can assist.

@meltyshev commented on GitHub (Sep 13, 2024): Hi! I don’t have enough knowledge of OIDC or what the error might mean in your case, but I’ve added a "help wanted" label and hopefully someone else can assist.
Author
Owner

@flaxaurial commented on GitHub (Sep 14, 2024):

Cheers, @meltyshev ! I'm still experiencing the issue:

2024-09-14 03:02:13 [W] Error while exchanging OIDC code: TypeError: userinfo_endpoint must be configured on the issuer 2024-09-14 03:02:13 [W] Invalid code or nonce! (IP: ::1)

@flaxaurial commented on GitHub (Sep 14, 2024): Cheers, @meltyshev ! I'm still experiencing the issue: `2024-09-14 03:02:13 [W] Error while exchanging OIDC code: TypeError: userinfo_endpoint must be configured on the issuer 2024-09-14 03:02:13 [W] Invalid code or nonce! (IP: ::1)`
Author
Owner

@meltyshev commented on GitHub (Sep 16, 2024):

Could you please provide your configuration and the provider you're using? There's very little information available to help figure out what might be wrong.

@meltyshev commented on GitHub (Sep 16, 2024): Could you please provide your configuration and the provider you're using? There's very little information available to help figure out what might be wrong.
Author
Owner

@meltyshev commented on GitHub (Sep 20, 2024):

Hi! We've added the ability to skip the userinfo endpoint and retrieve all claims from the id_token, but the new version hasn't been released yet. You can try using planka:dev docker image to test how it works in your case (don't forget to set the OIDC_CLAIMS_SOURCE=id_token environment variable and please don't use this image in a production deployment).

UPD: has already been released as v1.23.0.

@meltyshev commented on GitHub (Sep 20, 2024): Hi! We've [added](https://github.com/plankanban/planka/pull/888) the ability to skip the userinfo endpoint and retrieve all claims from the id_token, but the new version hasn't been released yet. You can try using `planka:dev` docker image to test how it works in your case (don't forget to set the `OIDC_CLAIMS_SOURCE=id_token` environment variable and please don't use this image in a production deployment). UPD: has already been released as v1.23.0.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/planka#568