google-auth-library-python
google-auth-library-python copied to clipboard
fix: read `token_uri` field from authorized user ADC JSON
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.