mirror of
https://github.com/plankanban/planka.git
synced 2026-02-25 03:14:50 +03:00
Planka + Keycloak #436
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 @DeAlexPesh on GitHub (Mar 18, 2024).
Can you write fresh instruction for Keycloak SSO with admin groups?
@meltyshev commented on GitHub (Mar 19, 2024):
Hi! I'll label this as "help wanted" and hopefully someone can explain the configuration method. It's a bit complicated for me as I haven't used it.
@DeAlexPesh commented on GitHub (Mar 19, 2024):
how this issue is work?
@meltyshev commented on GitHub (Mar 19, 2024):
This is a slightly older version of the configuration. All available environment variables are listed in the documentation: https://docs.planka.cloud/docs/Configuration/OIDC.
@mattboll commented on GitHub (Apr 4, 2024):
@DeAlexPesh what kind of information do you need ?
The doc seems to be fine, you just have to configure :
For planka :
OIDC_ROLES_ATTRIBUTE=groups
OIDC_IGNORE_ROLES=false
For keycloak (my version is 24) :
In Client scopes, click roles to go to Client scope details, in Mappers add a mapper, I chose "from configuration", I selected "User Realm Role" set "groups" in "Token Claim Name" and check that "Add to userinfo" is on
It should be ok after that
@serega404 commented on GitHub (Sep 25, 2024):
@mattboll It didn't work for me, do you have any other ideas?
I use keycloak 22 (upgrading to version 24 did not help)
@mattboll commented on GitHub (Sep 26, 2024):
@serega404 what is not working ? Do you have the "Log in with SSO" button ? Are you redirected to keycloak ? Are you then redirected to planka ? Any error or something ?
edit: sorry I read too fast, is it just the roles not working ?
@serega404 commented on GitHub (Sep 26, 2024):
Yes, the roles do not work
@YUNoMakeGoodMap commented on GitHub (Dec 12, 2024):
Okay, I know I am a nobody, but I got this working recently and I wanted to help you guys out :)
I use "planka_admin" for my admin role, and "groups" for the claim name in OpenID
Here is my OIDC settings in my .env file:
In Keycloak, do the following: