I had a running setup where a backend Cloud Run service was fronted by API Gateway. The security definition was straightforward:
flow: "implicit"
type: "oauth2"
x-google-jwks_uri: "https://www.googleapis.com/oauth2/v3/certs"
x-google-issuer: "https://accounts.google.com"
x-google-audiences: "my-audience"
Now that I have added an external load-balancer (with a custom domain) by following the Google documentation (here), I get the following error log from API Gateway:
response_code_detail: "jwt_authn_access_denied{Audiences_in_Jwt_are_not_allowed}"
service_agent: "ESPv2/2.35.0"
Any help would be greatly appreciated.