-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Implement Enterprise SCIM - EnterpriseService.ListProvisionedSCIMUsers #3839
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
base: master
Are you sure you want to change the base?
Conversation
elminster-aom
left a comment
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.
Found an incoherence about the Accept header. While the document states for all endpoints:
Headers
acceptstring
Setting toapplication/vnd.github+jsonis recommended.
Their example endpoints use different values. For example on GET .../Users: -H "Accept: application/scim+json"
Reported to GitHub support and they confirmed that:
The correct header is
Accept: application/scim+json.
Fix here for EnterpriseService.ListProvisionedSCIMGroups
TODO
Fix for SCIMService endpoints too.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #3839 +/- ##
=======================================
Coverage 92.41% 92.42%
=======================================
Files 197 197
Lines 14152 14167 +15
=======================================
+ Hits 13079 13094 +15
Misses 884 884
Partials 189 189 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
gmlewis
left a comment
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.
Thank you, @elminster-aom!
Just a few tweaks, please, then we should be ready for a second LGTM+Approval from any other contributor to this repo before merging.
cc: @stevehipwell - @alexandear - @zyfy29
| Filter string `url:"filter,omitempty"` | ||
| // Used for pagination: the starting index of the first result to return when paginating through values. | ||
| // Default: 1. | ||
| StartIndex int `url:"startIndex,omitempty"` | ||
| // Used for pagination: the number of results to return per page. | ||
| // Default: 30. | ||
| Count int `url:"count,omitempty"` |
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.
These omitempty fields should be pointers since they are optional values.
Related with #3813
Summary
From REST API endpoints for Enterprise SCIM docs, implements:
/scim/v2/enterprises/{enterprise}/GroupsOther changes
Enterprise.ListProvisionedSCIMGroupsAccept header, set it toapplication/scim+jsonEnterprise.ListProvisionedSCIMGroupsunti test function name