How to Customize Access Token Length?

The access token generated by Apigee is currently 64 bit - 28 characters long by default. Is it possible to increase or decrease the length of the token by changing some configuration in Apigee.

0 5 1,313
5 REPLIES 5

Not applicable

I don't see any documentation on that. You can customize the token by adding custom attributes.

If you need to change the length and things, we had implemented one logic in our organization. I can share that.

For each grant type, we were adding some extra characters which were randomly generated and getting appended using a javascript to the token before sending back the response and again extracted the same when receiving in the request.

You can perform one way hash (sha 256) for tokens . As an aftereffect, that would increase the length of token. Is that what you are looking for?

Regards

Yes something of that sort, but basically updating the Apigee configurations to generate the tokens with increased length.

Check this - (however it did not work on my AIO installation.)

https://docs.apigee.com/api-platform/security/oauth/hashing-tokens

It may be possible. You need to contact Apigee support to request it.