Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set group from Social logins (or at least openid_connect) #3314

Open
livingsilver94 opened this issue Sep 20, 2024 · 1 comment
Open

Set group from Social logins (or at least openid_connect) #3314

livingsilver94 opened this issue Sep 20, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@livingsilver94
Copy link

Is your feature request related to a problem? Please describe.

I'm the administrator of my homelab. My OIDC provider, Authelia, can advertise the groups I belong to when I login. It seems that Tandoor doesn't consider this feature and just assigns me to the SOCIAL_DEFAULT_GROUP.

Describe the solution you'd like

Tandoor should ask for groups when a user is logging in via openid_connect and assign the user accordingly. For example, if Authelia advertises I'm a member of admin, then I'm allowed to join the admin group in Tandoor too.

Describe alternatives you've considered

The solution I proposed assumes hardcoded groups (guest, user, admin). The ideal solution is to create a mapping between OIDC groups and Tandoor groups. See Mealie as an example.

Additional context

Authelia is using LDAP as a backend. Groups are coming from there, but that doesn't matter since OIDC abstracts that away.

@livingsilver94 livingsilver94 added the enhancement New feature or request label Sep 20, 2024
@vabene1111
Copy link
Collaborator

I understand what you mean, likely something that can be done. Given that I do not use any social auth providers anyone is welcome to implement, test and PR this feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants