# GoogleInstalledApplicationAuthorization

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

Class 

`OfficeIMO.GoogleWorkspace.Auth.GoogleApis`

**Namespace**

`OfficeIMO.GoogleWorkspace.Auth.GoogleApis`

**Assembly**

`OfficeIMO.GoogleWorkspace.Auth.GoogleApis`

**Source revision**

`105ae88c45f6` with working tree changes

**Source**

[GoogleInstalledApplicationAuthorization.cs:51](https://github.com/EvotecIT/OfficeIMO/blob/105ae88c45f6be3bb2020384e25ffe61d990451b/Sources/OfficeIMO.GoogleWorkspace.Auth.GoogleApis/GoogleInstalledApplicationAuthorization.cs#L51)

**Modifiers**

static

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

## Inheritance

- object
- GoogleInstalledApplicationAuthorization

## Guides & Samples

Authored walkthroughs and practical samples linked to this API.

- [Authenticate to Google Workspace](/docs/google-workspace/authentication/) Guide
  
  Create a GoogleWorkspaceSession in .NET from a service account, a short-lived access token, or existing Google APIs credentials.

Filter members 

Show inherited

## Methods

`public static async Task<GoogleApisCredentialSource> AuthorizeAsync(GoogleInstalledApplicationAuthorizationOptions options, CancellationToken cancellationToken = default)` [#](#method-authorizeasync-officeimo-googleworkspace-auth-googleapis-googleinstalledapplicationauthorizationoptions-threading-cancellationtoken)

Authorizes and returns a credential source with provider-verified identity evidence. This convenience method always requires [GoogleInstalledApplicationAuthorizationOptions.CredentialBindingResolver](/api/google-workspace-auth/officeimo-googleworkspace-auth-googleapis-googleinstalledapplicationauthorizationoptions/); use [GoogleInstalledApplicationAuthorization.AuthorizeCredentialAsync](/api/google-workspace-auth/officeimo-googleworkspace-auth-googleapis-googleinstalledapplicationauthorization/) for a resolver-free read-only credential.

Parameters

**options OfficeIMO.GoogleWorkspace.Auth.GoogleApis.GoogleInstalledApplicationAuthorizationOptions required**

**cancellationToken System.Threading.CancellationToken = default optional**

Returns

`Task<GoogleApisCredentialSource>`

`public static async Task<UserCredential> AuthorizeCredentialAsync(GoogleInstalledApplicationAuthorizationOptions options, CancellationToken cancellationToken = default)` [#](#method-authorizecredentialasync-officeimo-googleworkspace-auth-googleapis-googleinstalledapplicationauthorizationoptions-threading-cancellationtoken)

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

Parameters

**options OfficeIMO.GoogleWorkspace.Auth.GoogleApis.GoogleInstalledApplicationAuthorizationOptions required**

Validated OAuth client, scope, user, token-store, and receiver settings.

**cancellationToken System.Threading.CancellationToken = default optional**

Token used to cancel interactive authorization.

Returns

`Task<UserCredential>` The authorized Google user credential.

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

<!-- PowerForge markdown artifact sha256:6B8A609123E87432C6BDA3798BD7CF7EB977BA1F79E53363D632DFFE7886C7A9 -->
