-
Notifications
You must be signed in to change notification settings - Fork 150
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 admin role mandatory attribute update #497
Fix admin role mandatory attribute update #497
Conversation
throws IdentitySCIMException { | ||
Map<String, String> attributes = new HashMap<>(); |
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.
throws IdentitySCIMException { | |
Map<String, String> attributes = new HashMap<>(); | |
throws IdentitySCIMException { | |
Map<String, String> attributes = new HashMap<>(); |
* @throws IdentitySCIMException if any error occurs while adding admin role attributes. | ||
*/ | ||
public void addAdminRoleMandatoryAttributes(String roleName) | ||
throws IdentitySCIMException { |
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.
can't we move the line 93 above
public void addAdminRoleMandatoryAttributes(String roleName) | ||
throws IdentitySCIMException { | ||
Map<String, String> attributes = new HashMap<>(); | ||
String tenantDomain = IdentityTenantUtil.getTenantDomain(1); |
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.
String tenantDomain = IdentityTenantUtil.getTenantDomain(1); | |
String tenantDomain = IdentityTenantUtil.getTenantDomain(<use correct tenant id>); |
Previously, the mandatory id attribute of admin role was update using a random UUID. However, in the current role v2 implementation, we set the UUID from the kernel to the UM_HYBRID_ROLE table. Instead of updating the ID attribute of the role with a random UUID, we set the role id attribute by retrieving the UUID from the UM_HYBRID_ROLE table.
Part of wso2/product-is#16363