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.
Now we need to know which user invoked the API so that response can be formed. How can we know which user invoked this API in the backend?
For instance, suppose there is a Student Listing page and Depending on the class teacher who logged in , we have to show the student list.We have that information in our backend database.To get that information , backend has to know the id of the teacher who made the API call..
How to achieve this in WSO2?Any alternative approaches?
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/42881454/wso2-api-manager-get-user-name-in-backend