My web client application has different menus like read , delete , add ,view etc depending up on the users roles.
I have different scope as read , delete , add etc and associated roles with them which is configured in WSO2 API Manager.
when user logs in , I authenticate user via WSO2 API Manager and gets the token .How can i obtain all the valid scopes for that token so that i can show the user different menu's depending on the scopes i received?
Since i have many scopes , i hope to have some solution other than passing all the scopes while authenticating?
What is the best approach to handling menu/button visibility depending on roles when using WSO2 API Manager..Should i use roles or scopes for this? if so , how can i get all the scopes/role in my client application?
Copyright Notice:Content Author:「Janier」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/41416297/how-to-get-all-the-scopes-user-has-access-to-in-wso2-api-manager