Authorization Code - Custom attribute

Not applicable

There is a requirement to associate custom attribute to Authorization Code after its creation. Is there any example?

I am aware that custom attributes can be added to Access token (after its creation) via OAuthv2 policy. Following doc mention that same can be possible for authroization code.

http://apigee.com/docs/api-services/content/customizing-access-tokens

It would be good to add an example. If it's not possible then this doc need to be revised.

Solved Solved
0 4 354
1 ACCEPTED SOLUTION

@rdoda Did you try the Set OAuth V2 info policy? This policy lets add or update custom attributes associated with an access token, refresh token, or authorization code

View solution in original post

4 REPLIES 4

This policy works fine at the creation time. Requirement is to associate value of custom attribute after Authorization Code has been created i.e. more like an update operation to Authroization Code. Something similar to the way custom attribute of access token can be updated via OAuthv2 policy.

@rdoda Did you try the Set OAuth V2 info policy? This policy lets add or update custom attributes associated with an access token, refresh token, or authorization code

Hi @rdoda,

can you share the usecase? interested in knowing why you want to update the code

Thanks,