Open somewhere-ai opened 1 week ago
Hi! What error are you getting in the server console? If it's a 401
status code, it could be the following errors: Invalid code or nonce
or Invalid userinfo configuration
. In the second case, you can try setting OIDC_CLAIMS_SOURCE=id_token
.
Hi, I'm glad to receive your reply. The error message is: Invalid code or nonce @meltyshev
The server should display a more detailed error message when logging in. For example, you can see it when running docker compose without the -d
flag. 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/.
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
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 Request
error for some reason. Do you have access to the provider's logs?
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