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

fix: read `token_uri` field from authorized user ADC JSON

Open jackwotherspoon opened this issue 2 years ago • 0 comments

Authorized user type ADC credentials have token_uri hardcoded to "https://oauth2.googleapis.com/token". For GCP products such as Cloud Interconnect, customers can create their own custom token URI for authorization. Currently, custom token_uri does not work for authorized user type credentials because the value is hardcoded.

This PR checks if token_uri is set in the authorized user generated ADC json, otherwise defaults to regular token URI.

jackwotherspoon avatar Aug 29 '23 13:08 jackwotherspoon