Skip to content

Querying getRoleListOfUser(userName) for each application for the same user #2114

Open
@kasunsiyambalapitiya

Description

@kasunsiyambalapitiya

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions