google-auth-library-java icon indicating copy to clipboard operation
google-auth-library-java copied to clipboard

Adding Custom Header

Open BalamuraliKirhsnan opened this issue 1 year ago • 2 comments

PLEASE READ: If you have a support contract with Google, please create an issue in the support console instead of filing on GitHub. This will ensure a timely response.

We are using google Oauth library to get idTokenCredentials. In our organization we have to use forward proxy to connect to googleapi.com/token. The other system which does forward proxy needs additional header and am not finding option to add as library does it all.

Also, i looks for JWT token claims which will help us to prepare JWT ourself and pass it on request to get the IDToken.

BalamuraliKirhsnan avatar Aug 12 '24 07:08 BalamuraliKirhsnan

We have some docs in the README regarding proxy here.

Could you try that and see if that helps your use case?

In our organization we have to use forward proxy to connect to googleapi.com/token. The other system which does forward proxy needs additional header and am not finding option to add as library does it all.

I don't think we have built-in support for adding a custom headers/ values to the getToken() calls. Can you elaborate a bit more about this (which calls are needed, which credentials are affected, etc).

lqiu96 avatar Feb 10 '25 22:02 lqiu96

Downgrading to p3 while waiting for customer response. Can update priority with more information.

lqiu96 avatar Feb 26 '25 20:02 lqiu96

Closing this issue as there hasn't been a response in a while. If this issue persists or there are further responses, we can re-open the issue.

lqiu96 avatar Jul 16 '25 19:07 lqiu96