golang/oauth2

[Question] Refresh revoked application default credentials via OAuth2

ashmeenkaur opened this issue · 0 comments

Hi team, we're using OAuth2/google library for token-based HTTP client authentication (interacting with GCS - storage client). We have a specific use case where application default credentials are revoked every 16 hours. Is there a way to automate token renewal within the OAuth2 library or HTTP client to handle this scenario without user intervention? Any ideas would be appreciated!
Thanks!

Code ref: https://www.google.com/url?sa=D&q=https%3A%2F%2Fgithub.com%2FGoogleCloudPlatform%2Fgcsfuse%2Fblob%2F2d635761ba0baa584d56be4332835db213b65404%2Finternal%2Fauth%2Fauth.go%23L72