Is there a way to force GoogleWebAuthorizationBroker.AuthorizeAsync
to use a specific browser for verifying application permissions?
I have an environment where Chrome will be installed on all users' machines, however it is not guaranteed to be the default browser; the implementation requires the OAuth confirmation to always happen in Chrome (for reasons that are above my pay grade).
I'm using:
var task = GoogleWebAuthorizationBroker.AuthorizeAsync(
new ClientSecrets {
ClientId = clientId,
ClientSecret = clientSecret
}
, scopes
, userName
, CancellationToken.None
, new FileDataStore(FileDataStoreFolderName)
);
There is, however, no mention of passing an executable name in the API docs so my guess is that I'm going to have to write a custom AuthorizeAsync method, however I remain optimistic that I'm wrong in this case.