You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description:
When loading the Service Provider page for the logged in user from Management console, the following method isUserAuthorized is executed for each application which in turn queries the UserStore with the following method getRoleListOfUser(username) of the relevant userstore for getting roles list of the logged in user in order to match with the applicationRoleName. Here the above call is redundant as it will always return the same role list of the logged in user for each application.
The above flow can be optimized such that userStoreManager.getRoleListOfUser(username); is called to get roles list of the logged in user first and then validate the above-obtained roles with each applicationRoleName
Suggested Labels:
Type/Improvement
Affected Product Version: wso2is-5.7.0 OS, DB, other environment details and versions:
Any
Description:
When loading the Service Provider page for the logged in user from Management console, the following method isUserAuthorized is executed for each application which in turn queries the UserStore with the following method getRoleListOfUser(username) of the relevant userstore for getting roles list of the logged in user in order to match with the applicationRoleName. Here the above call is redundant as it will always return the same role list of the logged in user for each application.
The above flow can be optimized such that userStoreManager.getRoleListOfUser(username); is called to get roles list of the logged in user first and then validate the above-obtained roles with each applicationRoleName
Suggested Labels:
Type/Improvement
Affected Product Version:
wso2is-5.7.0
OS, DB, other environment details and versions:
Any
Related Issues:
wso2/product-is#4678
The text was updated successfully, but these errors were encountered: