Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: OIDC userinfo_endpoint must be configured #872

Open
flaxaurial opened this issue Sep 11, 2024 · 5 comments
Open

[Bug]: OIDC userinfo_endpoint must be configured #872

flaxaurial opened this issue Sep 11, 2024 · 5 comments
Labels
help wanted Extra attention is needed

Comments

@flaxaurial
Copy link

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

@flaxaurial
Copy link
Author

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 flaxaurial changed the title [Bug]: OIDC Failed to Load [Bug]: OIDC userinfo_endpoint must be configured Sep 12, 2024
@meltyshev meltyshev added the help wanted Extra attention is needed label Sep 13, 2024
@meltyshev
Copy link
Member

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.

@flaxaurial
Copy link
Author

flaxaurial commented 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)

@meltyshev
Copy link
Member

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
Copy link
Member

meltyshev commented 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants