mirror of
https://github.com/plankanban/planka.git
synced 2026-02-25 03:14:50 +03:00
SSO did not debug successfully, can anyone help me #603
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @somewhere-ai on GitHub (Nov 9, 2024).
Hi, I'm trying to get OIDC working with our Authenticator.But
After entering my username and password on my authentication page, I returned to the planka login page and received a prompt ‘Unknown error, try again later’.
And Console error with the following message:
POST http://ip:port/api/access-tokens/exchange-using-oidc?withHttpOnlyToken=true 401 (Unauthorized)
Here is my config:
Does someone just had the same problem or know how to solve it ?
Best regards
@meltyshev commented on GitHub (Nov 11, 2024):
Hi! What error are you getting in the server console? If it's a
401status code, it could be the following errors:Invalid code or nonceorInvalid userinfo configuration. In the second case, you can try settingOIDC_CLAIMS_SOURCE=id_token.@somewhere-ai commented on GitHub (Nov 11, 2024):
Hi, I'm glad to receive your reply. The error message is: Invalid code or nonce @meltyshev
@meltyshev commented on GitHub (Nov 11, 2024):
The server should display a more detailed error message when logging in. For example, you can see it when running docker compose without the
-dflag. Additionally, you can try checking the logs at/app/logs(inside the container) or enable external logging as described here: https://docs.planka.cloud/docs/Configuration/Logging/.@somewhere-ai commented on GitHub (Nov 12, 2024):
hi. Could you please help me check? The detailed log information is as follows
{"log":"2024-11-12 00:24:14 [W] Error while exchanging OIDC code: OPError: expected 200 OK, got: 400 Bad Request\n","stream":"stdout","time":"2024-11-12T00:24:14.596575539Z"} {"log":"2024-11-12 00:24:14 [W] Invalid code or nonce! (IP: 192.168.35.6)\n","stream":"stdout","time":"2024-11-12T00:24:14.596943628Z"}Thank you very much for your attention @meltyshev
@meltyshev commented on GitHub (Nov 12, 2024):
No problem at all :) Which OpenID provider are you using? There might be an issue with the configuration on the provider side, as it’s returning a
400 Bad Requesterror for some reason. Do you have access to the provider's logs?