Skip to content

Commit

Permalink
code refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
sadilchamishka committed Jun 29, 2023
1 parent b3a1b2a commit d43637a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -785,8 +785,8 @@ private String getSubjectClaimFromUserStore(String subjectClaimUri, Authenticate
AbstractUserStoreManager userStoreManager = (AbstractUserStoreManager) IdentityTenantUtil
.getRealm(authenticatedUser.getTenantDomain(), authenticatedUser.toFullQualifiedUsername())
.getUserStoreManager();
if (!userStoreManager.isExistingUserWithID(authenticatedUser.getUserId()) && OAuth2ServiceComponentHolder
.getInstance().isOrganizationManagementEnabled()) {
if (OAuth2ServiceComponentHolder.getInstance().isOrganizationManagementEnabled() &&
!userStoreManager.isExistingUserWithID(authenticatedUser.getUserId())) {
userStoreManager = getUserStoreManagerFromUserResideOrganization(authenticatedUser.getTenantDomain(),
authenticatedUser.getUserId()).orElse(userStoreManager);
}
Expand Down

0 comments on commit d43637a

Please sign in to comment.