Get Developer app custom attributes in tokenInfo response,Custom Attributes in response for Oauth2 tokenInfo at Developer app level

When the application hits tokeninfo then right now we just get code of 200 and empty body. I need the body to be populated with custom attributes of the developer app. How can i do that?

,

when the application fires token info then i need to get the custom attributes for the app in the response. What is the best way to do this

0 3 102
3 REPLIES 3

Not applicable

I would suggest to do token validation using oauth policy. Once the token is validated, all the custom attributes of the app can be accessed by

oauthv2.{policy_name}.{custom_attribute_name}

Hi I did validate the token and then used Verify Key policy and then Extract Variables to extract the custom attributes. Then in use the Javascript policy to set those to the response body.

But i am not sure if this is the optimum way to do this

What you suggested gives me access to custom attributes but as i said i want them to be displayed in the response

you can use

oauth policy or Verify-API-Key Policy or Access Entity Policy

For simple cases you can use verify-api-key