I deployed Distributed WSO2 APIM (2.6.0 - Pattern 2) IS as KM setup in Kubernetes. In my setup there are multiple replicas in the API Gateway deployment.
If the token is generated through the replica 1 of API gateway , the replica 2 takes a significant time to sync with the replica 1 and get to know that a token is generated by replica 1. So If I send a request to the replica 2 with the token generated in replica 1, it will show that the token doesn't exist. But after few minutes If I do the same and send the same request to replica 2 it will work without issue because replica 2 is synced with replica 1 at that time and know that the token is generated by replica 1.
ERROR - AMDefaultKeyManagerImpl Invalid OAuth Token : Invalid Access Token. Access token is not ACTIVE.
GatewayWARN - APIAuthenticationHandler API authentication failure due to Invalid Credentials
– Yasiru Dinuksha Nov 19 at 5:04