Access Owner ID for an OAuth access token

Hello,

Is there are a way to obtain the OAuth access token Owner ID programmatically if I write a service on the API Gateway? When API Gateway is the authorization server, a user will obtain a token. I can see the tokens in the list below:

If I have the token itself, is there a way to get the Owner ID by writing a service?

Regards,

Yunus Aswat.

1 Like

I’ve solved this by not having a service to do this. This involves using a Request Transformation policy and have a Header/Query/Path transformation as follows:

Variable: ${request.headers.user}
Value: ${request.authorization.userName}

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.