[Bug]: Unable to login with OIDC (Azure) #694

Closed
opened 2026-02-04 20:52:18 +03:00 by OVERLORD · 2 comments
Owner

Originally created by @danigl93 on GitHub (May 10, 2025).

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 behavior

When I want to login with odic I get following message in the new V2 RC2:

`
code
"E_MISSING_OR_INVALID_PARAMS"
message
"The server could not fulfill this request (POST /api/access-tokens/exchange-with-oidc) due to 1 missing or invalid parameter."
problems

["Invalid "code":↵ · Value was -61 characters longer than the configured maximum length (1024)"]
`

Best regards

Desired behavior

No response

Steps to reproduce

Try to login with "Log in with SSO"

Other information

No response

Originally created by @danigl93 on GitHub (May 10, 2025). ### 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 behavior When I want to login with odic I get following message in the new V2 RC2: ` code : "E_MISSING_OR_INVALID_PARAMS" message : "The server could not fulfill this request (`POST /api/access-tokens/exchange-with-oidc`) due to 1 missing or invalid parameter." problems : ["Invalid "code":↵ · Value was -61 characters longer than the configured maximum length (1024)"] ` Best regards ### Desired behavior _No response_ ### Steps to reproduce Try to login with "Log in with SSO" ### Other information _No response_
OVERLORD added the help wanted label 2026-02-04 20:52:18 +03:00
Author
Owner

@cjmaldonado commented on GitHub (May 13, 2025):

Azure AD code challenges seem to be larger than 1024 characters.

https://github.com/plankanban/planka/blob/master/server/api/controllers/access-tokens/exchange-with-oidc.js#L38

Should be an easy fix by settings to 2048 or something higher than 1024.

@cjmaldonado commented on GitHub (May 13, 2025): Azure AD code challenges seem to be larger than 1024 characters. https://github.com/plankanban/planka/blob/master/server/api/controllers/access-tokens/exchange-with-oidc.js#L38 Should be an easy fix by settings to 2048 or something higher than 1024.
Author
Owner

@cjmaldonado commented on GitHub (May 13, 2025):

Created PR: https://github.com/plankanban/planka/pull/1126

@cjmaldonado commented on GitHub (May 13, 2025): Created PR: https://github.com/plankanban/planka/pull/1126
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/planka#694