'WSO2 APIM 3.2 - AccessToken Cache doesn't work when using JWT Access Token

I'm using WSO2 AM 3.2 in a distributed environment (Publisher, DevPortal, KM , Gateway & Traffic Manager on separate VMs).

I did a Migration from a 2.6 platform , hence all my migrated applications use Opaque AccessToken & not JWT ones (which is the new standard).

I noticed the following behavior :

  • When I invoque the /Token API with an Application that has an Opaque Tokens : The Gateway Cache works perfectly (the gateway invoques /token on the key manager for the first call only & caches it during 15mn).

  • But when I invoque the /Token API with an Application that has an JWT Tokens, the Token is never cached , not in the Gateway side Nor the Key Manager side , & it provokes very big problems of performance since the KM always generates & sign a new JWT AccessToken for every call.

Is it a bug in the product or have I missed something ?

Thanks



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source