kontron / redmine_oauth

Redmine authentication through OAuth.
GNU General Public License v2.0
62 stars 27 forks source link

Synchronize Groups Feature #53

Open col-panic opened 1 month ago

col-panic commented 1 month ago

It would be nice to be able to synchronize the membership of groups to the info provided via Oauth.

Lets fix an example, on the redmine system there exist 3 groups, that can be seen via https://my.redmine.org/groups named supporter, controller, manager. Now the membership to each of these groups is dynamically assigned via oauth2.

Currently there is the setting Validate user roles to allow overall access and/or admin rights.

The setting Dynamic group membership could just the same way be used to insert a value like roles.redmine where the following example content

roles: {
  redmine: ["supporter", "controller"]
}

would assign the given user to be a member of the supporter and controllergroup.