-
Notifications
You must be signed in to change notification settings - Fork 186
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
autoprovisioning: Manage group memberships #9458
Conversation
Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes. |
94620ca
to
f99624d
Compare
@mmattel Please review the |
Add support for autoprovisioning group memberships from OIDC claims. Users are added to and removed from groups based on the value of an OIDC claim. If a group does not exist, it is created. Closes: owncloud#5538
Co-authored-by: Martin <[email protected]>
Quality Gate passedIssues Measures |
return err | ||
default: | ||
// group has been created meanwhile, re-read it to get the group id | ||
lgGroup, err = c.getLibregraphGroup(newctx, lgClient, group) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tricky.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
@ScharfViktor We need to get some API tests up and running for this.
autoprovisioning: Manage group memberships
Requires: cs3org/reva#4738 ✔️
groupmembership are not deleted yetconfig knobs for the group claim are missingThe sync process is currently triggered with every single request, we need to limit this to e.g. once per accesstoken lifetime (or once per userinfo cache ttl)documentation is missingTo avoid syncing group memberships with every single incoming request I add a small ttl based cache that keeps track of when group memberships were last updated for a specific user. Currently the ttl is hardcode to 1 minute, I am still pondering whether to turn that into a configuration option.