Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Class

GoogleInstalledApplicationAuthorization

Namespace OfficeIMO.GoogleWorkspace.Auth.GoogleApis
Assembly OfficeIMO.GoogleWorkspace.Auth.GoogleApis
Source revision 5bd172b753d5 with working tree changes
Modifiers static

Runs Google's installed-application authorization flow with PKCE always enabled.

Inheritance

  • Object
  • GoogleInstalledApplicationAuthorization

Methods

public static async Task<GoogleApisCredentialSource> AuthorizeAsync(GoogleInstalledApplicationAuthorizationOptions options, CancellationToken cancellationToken = default) #
Returns: Task<GoogleApisCredentialSource>

Authorizes and returns a credential source with provider-verified identity evidence. This convenience method always requires GoogleInstalledApplicationAuthorizationOptions.CredentialBindingResolver; use GoogleInstalledApplicationAuthorization.AuthorizeCredentialAsync for a resolver-free read-only credential.

Parameters

options OfficeIMO.GoogleWorkspace.Auth.GoogleApis.GoogleInstalledApplicationAuthorizationOptions requiredposition: 0
cancellationToken System.Threading.CancellationToken = default optionalposition: 1
public static async Task<UserCredential> AuthorizeCredentialAsync(GoogleInstalledApplicationAuthorizationOptions options, CancellationToken cancellationToken = default) #
Returns: Task<UserCredential>

Runs the PKCE installed-application flow and returns Google's native user credential.

Parameters

options OfficeIMO.GoogleWorkspace.Auth.GoogleApis.GoogleInstalledApplicationAuthorizationOptions requiredposition: 0
Validated OAuth client, scope, user, token-store, and receiver settings.
cancellationToken System.Threading.CancellationToken = default optionalposition: 1
Token used to cancel interactive authorization.

Returns

The authorized Google user credential.