-
Notifications
You must be signed in to change notification settings - Fork 537
Description
Hi,
I'm using the Google.Apis.Auth and PubSub library with a service account JSON key.
I would like to override the default token_uri (which is https://oauth2.googleapis.com/token
) to use a custom OAuth endpoint.
In the JSON file, I changed the token_uri field to my custom endpoint: http://oauth2-myglobalpsc.p.googleapis.com
When I load the credentials using GoogleCredential.FromFile(...)
, I can see that the token_uri field is correctly set in the parsed ServiceAccountCredential.Initializer. However, the library still calls https://oauth2.googleapis.com/token
when requesting the token.
Is there a supported way to make the library use the custom token_uri specified in the JSON file? Or another way to customize the token_uri?
Thanks!