-
Notifications
You must be signed in to change notification settings - Fork 10.7k
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
fix: Custom OAuth roles are not correctly synced on user creation #32157
Conversation
Looks like this PR is ready to merge! 🎉 |
🦋 Changeset detectedLatest commit: 18574f3 The changes in this PR will be included in the next version bump. This PR includes changesets to release 32 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #32157 +/- ##
===========================================
+ Coverage 52.78% 55.08% +2.29%
===========================================
Files 2187 2306 +119
Lines 48967 50942 +1975
Branches 9997 10423 +426
===========================================
+ Hits 25849 28059 +2210
+ Misses 20800 20368 -432
- Partials 2318 2515 +197
Flags with carried forward coverage won't be shown. Click here to find out more. |
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.
Bug was introduced by #27000
We need to take some time to add an OAuth service container to our tests so that we can write tests for those fixes.
Proposed changes (including videos or screenshots)
Issue(s)
Steps to test or reproduce
Configure a custom OAuth service with "Merge Roles from SSO" enabled and add some roles to sync. Use the custom OAuth service to login for the first time with a user that has any of the roles to sync assigned to them.
Current behavior: the roles are only assigned on their second login.
Expected behavior: the user should have their roles synced since the first login, on user creation.
Further comments
SUP-544