API Reference

Class

GoogleApisCredentialSource

Namespace OfficeIMO.GoogleWorkspace.Auth.GoogleApis
Assembly OfficeIMO.GoogleWorkspace.Auth.GoogleApis
Implements
IGoogleWorkspaceCredentialSource
Modifiers sealed

Adapts credentials from Google.Apis.Auth to the dependency-light OfficeIMO credential contract.

Inheritance

  • Object
  • GoogleApisCredentialSource

Usage

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Constructors

GoogleApisCredentialSource 2 overloads
public GoogleApisCredentialSource(GoogleCredential credential, Nullable<TimeSpan> fallbackTokenLifetime = null) #

Creates an adapter around a Google credential, applying requested scopes when the credential requires scoping.

Parameters

credential Google.Apis.Auth.OAuth2.GoogleCredential requiredposition: 0
fallbackTokenLifetime System.Nullable{System.TimeSpan} = null optionalposition: 1
public GoogleApisCredentialSource(ITokenAccess credential, Nullable<TimeSpan> fallbackTokenLifetime = null) #

Creates an adapter around any Google token source, including UserCredential.

Parameters

credential Google.Apis.Auth.OAuth2.ITokenAccess requiredposition: 0
fallbackTokenLifetime System.Nullable{System.TimeSpan} = null optionalposition: 1

Methods

public virtual async Task<GoogleWorkspaceAccessToken> AcquireAccessTokenAsync(IEnumerable<String> scopes, CancellationToken cancellationToken = null) #
Returns: Task<GoogleWorkspaceAccessToken>

Parameters

scopes System.Collections.Generic.IEnumerable{System.String} requiredposition: 0
cancellationToken System.Threading.CancellationToken = null optionalposition: 1