← All requests
10

Map OIDC groups to workspace roles

OpenAuthenticationAfterLyfeJMC ·

What would you like to change?

Right now OIDC login only brings in name and email. Everyone who signs in through my identity provider gets the same default access, and I have to go into the workspace and set roles by hand afterwards.

I'd like to map groups from the OIDC token to Kaneo roles, so the IdP is the one place that decides who is an admin, member or viewer.

Something like this would work for me:

  • an env var for the claim name, e.g. CUSTOM_OAUTH_GROUPS_CLAIM=groups
  • an env var that maps group names to roles, e.g. CUSTOM_OAUTH_GROUP_ROLES={"kaneo-admins":"admin","kaneo-users":"member"}

I'm not attached to the names or the format, whatever fits Kaneo best.

Additional context

I looked through the code and the custom OAuth profile mapper only reads name and email, so there's nothing to build on yet. Users would also need to add the groups scope through CUSTOM_OAUTH_SCOPES.

This goes hand in hand with the Default Workspace request (feedback.kaneo.app/requests/65). Mapped users need a workspace to land in.

Discussion 0

No comments yet.

Sign in to comment.

Keyboard shortcuts

Anywhere

Go to requests
gh
Go to changelog
gc
Go to notifications
gn
Next or previous page
norp
Leave a text field or close a menu
Esc
Show this list
?

Requests

Move to the next or previous request
jork
Open the selected request
oorEnter
Vote on the selected request
v
Search
/
New request
c

Request

Vote
v
Write a comment
c
Edit
e