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

Groups reset after logging in #15

Open
nagylzs opened this issue Apr 2, 2019 · 1 comment
Open

Groups reset after logging in #15

nagylzs opened this issue Apr 2, 2019 · 1 comment

Comments

@nagylzs
Copy link

nagylzs commented Apr 2, 2019

This plugin tries to synchronize group membership when the user is logged in:

https://github.com/kanboard/plugin-oauth2/blob/master/User/GenericOAuth2UserProvider.php#L160

I don't see this "oauth2_key_groups" documented anywhere. My biggest problem is that I already have a background program that synchronizes group memberships. But if a user logs in, all of its groups are reset. As a result, the user won't see any of its projects.

Questions:

  • Can we somehow turn off group synchronization?
  • Where is this "oauth2_key_groups" documented? I cannot find it in the README. Where should I send that, and what should be in it?
@nagylzs
Copy link
Author

nagylzs commented Apr 2, 2019

I could figure out that the oauth server must give back an array of external group ids in the response of the user info endpoint. But I still cannot find the documentation for this.

I have tried to leave the "groups key" field empty as suggested ("Leave empty, when no group mapping is wanted"), but it will NOT turn off group mapping. It will remove the user from all (external) groups instead. Removing from all groups is not the same as "not mapping".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant