how to get all the scopes user has access to in WSO2 API manager
NickName:Janier Ask DateTime:2017-01-01T22:45:47

how to get all the scopes user has access to in WSO2 API manager

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

More about “how to get all the scopes user has access to in WSO2 API manager” related questions

how to get all the scopes user has access to in WSO2 API manager

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 wh...

Show Detail

Getting the list of all scopes from WSO2 API manager

We have written our custom spring API to hit the WSO2 API manager for user authorization and getting the JWT token.Along with this login API,we have also configured all our other spring APIs throug...

Show Detail

WSO2 API Manager Customising Roles

We are using WSO2 Identity server and WSO2 API Manager to manage access. We give scopes to API and assign scopes to roles. Now the requirement came like From the application , privileges for roles ...

Show Detail

WSO2 API Manager and WSO2 key manager: user roles are not validated

I am using WSO2 Identity server and WSO2 API Manager to manage access. I want to ensure role based access control to APIs using oauth2 scopes and authorize end-users to access my APIs based on their

Show Detail

WSO2 APIM/IS - Is it possible to allow user to choose scopes to authorized

I am studying WSO2 API Manager. In the OAuth authorization code/implicit flow, after the user enter a valid credential in the login page. The user will be redirected to consent page like this. Whe...

Show Detail

WSO2 API Manager get user name in backend

We have a web application where we use API Manager and Identity server together.User logs into web app and get the token and scopes.And web application places the API call with the scope and token....

Show Detail

WSO2 API Manager Scopes for Federated Users

I have WSO2 API Manager federated setup with Azure AD. I can use the implicit and code grant type to generate the access tokens. Now I want to use the WSO2 API Manager scope functionality to limit...

Show Detail

How to identify the user from the User Token in WSO2 API Manager

I followed this link and I could get the user token. My use case is: Request get forward to wso2 esb from wso2 api manager with the Authorization header which has the user token. In side ESB I need...

Show Detail

Token validation at WSO2 API Manager (and Identity Server)

We building our API with wso2 API manager + separate identity server. For implementation of resource server we need to validate token (that it's valid) get information about user (roles, username,

Show Detail

RBAC(Role back access control) in wso2 API manager and Identity server

I am evaluating WS02 Api manager and Identity server. My requirement is as follows: 1) We have to develop a web portal where all the APIs will be exposed in wso2 api manager in which multiple end u...

Show Detail