I am trying to deploy my openApi document by running this:
gcloud endpoints services deploy <OPENAPI_DOC>
I am able to see new 'config_id' generated successfully and my openApi document is deployed successfully. However when I hit(from a javascript client) one of the endpoint declared in openApi document, I am not able to see the 'X-Endpoint-API-UserInfo' header being passed. I need that that header value to cast it to a Java object. One of the work around I could think of is that I can use the 'Authorization' header instead. But when I went through this, it is mentioned that:
'ESP will send the authentication result in the X-Endpoint-API-UserInfo to the backend API. It is recommended to use this header instead of the original Authorization header.'
So, want to know why is it not recommended to use 'Authorization' header. Are there any security concerns. If yes, what are they?
Thank you!