I am looking to build a service with authentication while also have the ability to restrict API calls. This is on GCP.
I am looking for Google API Gateway for this and understand that JWT based authentication can give me the identity of who is calling - an user email and/or service account email. While using API key can help me rate limit API calls with quotas.
Both API Key and JWT are authentication approaches. However, it seems I wont understand who is the caller with API key approach (unless I maintain a registry on my end) or I wont be able to rate limit if I use the JWT approach.
Is my understanding above correct? Is there a way to rate limit calls to my API with the JWT approach?
Many Thanks for reading and perhaps responding.