My application is running on AWS using Lambdas and API Gateway. It also runs in multiple regions. Currently use Cognito for authentication. The problem is that it does not support multiple regions. I managed to manually sync user entries across Cognito identities in different regions, but this does not let me use the token generated in one region to be used in a different region.
I’m curious whether Auth0 would let me achieve that. Meaning:
- Authenticate using some Lambda
- Use a stateless Authorizer Lambda that would validate the JWT token and would work in any region.
I would also appreciate some hints on how to implement that using Auth0.