authenticationgoogle-cloud-platformjwtgoogle-api-gateway

JWT token changes when passing through the GCP API gateway


I am sending a JWT token in api header. I designed this to pass through GCP api gateway and hit cloudrun service. But when passing through api gateway, the whole JWT token changes every time. There is no effect when I call the cloudrun directly without an api gateway. Any ideas about this?


Solution

  • You have several use cases

    Note: when API Gateway generate an identity token, the initial authorization token is forwarded in a new header: X-Apigateway-Api-Userinfo