-
Notifications
You must be signed in to change notification settings - Fork 55
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
Update how we save and log org claims on whoami calls #8254
Conversation
1e347c7
to
d24b232
Compare
Quality Gate passedIssues Measures |
if (!isAdmin) { | ||
if (currentOrgRoles.isPresent()) { | ||
PartialOktaUser oktaUser = _oktaRepo.findUser(currentUser.getLoginEmail()); | ||
return consolidateUser(currentUser, oktaUser); |
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.
consolidateUser
method that also handles the comparison check, logging (regardless of the status of the feature flag) and setting the user's role and facilities (if the feature flag is off)
String username = currentAuth.getName(); | ||
List<OrganizationRoleClaims> dbOrgRoleClaims = |
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.
whoami
calls.
Moved the check to the level of the getCurrentUserInfoForWhoAmI
method to avoid instances where users who were not migrated were being checked (thus, logging an error).
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.
Tested on dev3 with clearing roles for Oktavius Migratius, successfully populated the cleared roles, and found no log describing a mismatch in app insights. LGTM!
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 -- thanks for you work on this!
BACKEND PULL REQUEST
Related Issue
Changes Proposed
getCurrentUserInfoForWhoAmI
methodLoggedInAuthorizationService
levelAdditional Information
Testing
deployed on dev3