Auth0 with AWS Lambda, API Gateway and multiple regions

Hi Everybody,

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:

  1. Authenticate using some Lambda
  2. 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.

Thanks,
Ruben

Hey there @rubenhak!

To be honest I don’t have much knowledge regarding AWS Lambda so there will be for sure someone who can help better than myself but I did a quick research and found one of our articles on building serverless apps with AWS Lambda:

Hope it can help in some way!

hi Konrad,

Thanks for the comments!
I’ve seen that article. The reason I decided to ask here is that it still uses AWS Cognito, which does not work well when it comes to multiple regions. I wanted to make sure that with this approach I can login to one region, and then use the same token in a different region.

Thanks