With AWS Lambda and API Gateway, I can deploy a function exposed with http.
With Cognito and API Gateway, I can protect the function with oauth2 and a jwt token.
With GCP Function and the http-trigger option, I can deploy a function exposed with http.
Is there a "GCP Cognito alternative" I can used to protect my function with oauth2 and a jwt token ?
I have tried with "Identity Platform". I can obtain a (not jwt) token with : https://accounts.google.com/o/oauth2/v2/auth?client_id=[my client id]&redirect_uri=[my redirect uri]&response_type=token&scope=openid
But this give me a 401 : curl -L -v -XGET --header "Authorization: Bearer [the not jwt token]"https://europe-west2-[my project].cloudfunctions.net/my-hello-function"
Thanks !