ADFS + Planka #452

Open
opened 2026-02-04 19:39:26 +03:00 by OVERLORD · 3 comments
Owner

Originally created by @SkorpionMars on GitHub (Mar 29, 2024).

Good afternoon.

We are trying to connect authorization to Planka using ADFS(Windows Server 2019/2022) via OIDC.

After entering the necessary parameters we get the following error when trying to authorize in the service.

Settings on the Planka side

OIDC_ISSUER=https://adfs-sandbox.domain.com/adfs
OIDC_CLIENT_ID=5cd56d55-0f8f-4705-9ad6-5001cc8744bc
OIDC_CLIENT_SECRET=yKrTyg4xOHdgW2laQXb0gf3z4XvqyNqwrNv3USqy
OIDC_SCOPES=openid email profile
# OIDC_ADMIN_ROLES=admin
# OIDC_EMAIL_ATTRIBUTE=email
# OIDC_NAME_ATTRIBUTE=name
# OIDC_USERNAME_ATTRIBUTE=username
# OIDC_ROLES_ATTRIBUTE=groups
# OIDC_IGNORE_USERNAME=true
OIDC_IGNORE_ROLES=true
# OIDC_ENFORCED=true

Errors from Planka log

2024-03-29 12:27:19 [W] Error while exchanging OIDC code: OPError: invalid_token (MSIS9921: Received invalid UserInfo request. Audience 'microsoft:identityserver:5cd56d55-0f8f-4705-9ad6-5001cc8744bc' in the access token is not same as the identifier of the UserInfo relying party trust 'urn:microsoft:userinfo'.)
2024-03-29 12:27:19 [W] Invalid code or nonce! (IP: ::1)

Version Planka 1.16.1

Information from Saml-Tracer addon in Firefox
2024-03-29_14-36

Can you help with this problem?

Originally created by @SkorpionMars on GitHub (Mar 29, 2024). Good afternoon. We are trying to connect authorization to Planka using ADFS(Windows Server 2019/2022) via OIDC. After entering the necessary parameters we get the following error when trying to authorize in the service. Settings on the Planka side ``` OIDC_ISSUER=https://adfs-sandbox.domain.com/adfs OIDC_CLIENT_ID=5cd56d55-0f8f-4705-9ad6-5001cc8744bc OIDC_CLIENT_SECRET=yKrTyg4xOHdgW2laQXb0gf3z4XvqyNqwrNv3USqy OIDC_SCOPES=openid email profile # OIDC_ADMIN_ROLES=admin # OIDC_EMAIL_ATTRIBUTE=email # OIDC_NAME_ATTRIBUTE=name # OIDC_USERNAME_ATTRIBUTE=username # OIDC_ROLES_ATTRIBUTE=groups # OIDC_IGNORE_USERNAME=true OIDC_IGNORE_ROLES=true # OIDC_ENFORCED=true ``` Errors from Planka log ``` 2024-03-29 12:27:19 [W] Error while exchanging OIDC code: OPError: invalid_token (MSIS9921: Received invalid UserInfo request. Audience 'microsoft:identityserver:5cd56d55-0f8f-4705-9ad6-5001cc8744bc' in the access token is not same as the identifier of the UserInfo relying party trust 'urn:microsoft:userinfo'.) 2024-03-29 12:27:19 [W] Invalid code or nonce! (IP: ::1) ``` Version Planka 1.16.1 Information from Saml-Tracer addon in Firefox ![2024-03-29_14-36](https://github.com/plankanban/planka/assets/45296103/bb61b0e6-ad32-4064-98c0-49c3b8d2e8f7) Can you help with this problem?
OVERLORD added the help wanted label 2026-02-04 19:39:26 +03:00
Author
Owner

@meltyshev commented on GitHub (Apr 2, 2024):

Hi! We'll try to reproduce this as soon as we have access to ADFS, but for now I'll add a "help wanted" label, maybe someone who has already encountered this can help.

@meltyshev commented on GitHub (Apr 2, 2024): Hi! We'll try to reproduce this as soon as we have access to ADFS, but for now I'll add a "help wanted" label, maybe someone who has already encountered this can help.
Author
Owner

@RogerSik commented on GitHub (Jul 14, 2024):

Have the same issue with OIDC and Authentik. Strange thing is that it happens sometimes. Repeatedly re-trying the login it will works.

@RogerSik commented on GitHub (Jul 14, 2024): Have the same issue with OIDC and Authentik. Strange thing is that it happens sometimes. Repeatedly re-trying the login it will works.
Author
Owner

@meltyshev commented on GitHub (Jul 15, 2024):

Have the same issue with OIDC and Authentik. Strange thing is that it happens sometimes. Repeatedly re-trying the login it will works.

Hi! That's strange, because I tested OIDC exactly on Authentik. Are you using the latest version of Planka? Could you please provide the error message from the server logs?

@meltyshev commented on GitHub (Jul 15, 2024): > Have the same issue with OIDC and Authentik. Strange thing is that it happens sometimes. Repeatedly re-trying the login it will works. Hi! That's strange, because I tested OIDC exactly on Authentik. Are you using the latest version of Planka? Could you please provide the error message from the server logs?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/planka#452