WSO2 API Manager get user name in backend
NickName:Janier Ask DateTime:2017-03-19T08:19:06

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

More about “WSO2 API Manager get user name in backend” related questions

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 how to protect backend apis

I am moving to WSO2 API Manager cloud. I have hosted my backend API's and wso2 API Manager in AWS myself. The access to backend API's were limited only to WSO2 API Manager EC2 Mahcine's IP. So that...

Show Detail

Securing backend with WSO2 Identity Server and WSO2 API Manager

I have an API that is exposed through WSO2 API Manager, it is secured by OAuth2 so client must pass an apikey, token or credentials in order to get access to resources. So far so good. But now, I'd...

Show Detail

WSO2 API Manager integration with Oracle Identity Manager

We are using WSO2 API Manager as a gateway to route requests to backend. We have a requirement to verify user credentials and authorization by making a call to Oracle Identity Manager and Oracle Ac...

Show Detail

Add User Role as header when hit endpoint in WSO2 Api Manager

I have an backend which is give response based on role of enduser which are managed using WSO2 API Manager v2. I want to pass the user role based on it's access token which is already generated. I ...

Show Detail

WSO2 API Manager 1.10.0

I want to grab source code for carbon-apimgt: https://github.com/wso2/carbon-apimgt Also the source code for product-apim: https://github.com/wso2/product-apim I don't want to grab the latest sourc...

Show Detail

WSO2 Api Manager Keycloak Claims

I've successfully configured Keycloak as identity server for WSO2 api manager and I need am able to login to keycloak and, with the bearer, call a WSO2 defined rest API. Now I need to make WSO2 sen...

Show Detail

wso2 api manager modify JSON payload sent to backend

I have REST API URL defined as https://hostname/[version]/[service]/[operation] and I would like to transform JSON payload in WSO2 API Manager in order to put version and operation inside. So th...

Show Detail

How to Pass Incoming Query Parameter to Backend WSO2 API Manager

I am using wso2 API manager 3.2 and in my API there are some headers and Query Parameter. My API has some path variable in URL in this way http://example.com/data/readsomeData/{entityId}/{someId} ...

Show Detail

WSO2 API Manager 2.0 User Class extension

We've deployed WSO2 API Manager 2.0 and are very happy with it. Although, we've been looking in the documentation if it is possible to add a field to the user profile but haven't found anything y...

Show Detail