-
Notifications
You must be signed in to change notification settings - Fork 54
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
Log error if Okta and DB role claims unequal #8182
base: main
Are you sure you want to change the base?
Conversation
c39c587
to
8cd863e
Compare
8cd863e
to
f800b08
Compare
Quality Gate passedIssues Measures |
@@ -60,6 +60,8 @@ public List<OrganizationRoleClaims> findAllOrganizationRoles() { | |||
String username = currentAuth.getName(); | |||
List<OrganizationRoleClaims> dbOrgRoleClaims = | |||
_dbOrgRoleClaimsService.getOrganizationRoleClaims(username); | |||
_dbOrgRoleClaimsService.checkOrgRoleClaimsEquality( |
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.
organizationRolesContext
and have to fetch it again? 🤔
Based on digging around in Azure, it seems like on initial log in and page load fetchCurrentOrganizationRoles
(which is the only method that calls findAllOrganizationRoles
is called a bunch of times and then not again for 20-30 mins or so...
I'm asking because I'm wondering if we are doing the check too frequently if I set the check at this point. 🤔
@@ -159,7 +159,7 @@ void getUser_withAdminUser_withOktaMigrationDisabled_success() { | |||
|
|||
UserInfo userInfo = _service.getUser(apiUser.getInternalId()); | |||
|
|||
verify(_dbOrgRoleClaimsService, times(0)).getOrganizationRoleClaims((ApiUser) any()); | |||
verify(_dbOrgRoleClaimsService, times(1)).getOrganizationRoleClaims((ApiUser) any()); |
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.
BACKEND PULL REQUEST
Related Issue
Changes Proposed
getUser
methodgetUserByLoginEmail
methodorganizationRolesContext
Additional Information
oktaMigrationEnabled
for certain dev envs for testing #8180Testing
[email protected]
ondev3
:SR-DEV3-TENANT:AK-Bobans-org-5145a894-3be7-45ea-a5a1-79895df0352c:ALL_FACILITIES