API Reference
Class
GoogleApisCredentialSource
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.
Returned or exposed by
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
- fallbackTokenLifetime System.Nullable{System.TimeSpan} = null
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
- fallbackTokenLifetime System.Nullable{System.TimeSpan} = null
Methods
public virtual async Task<GoogleWorkspaceAccessToken> AcquireAccessTokenAsync(IEnumerable<String> scopes, CancellationToken cancellationToken = null) #Returns:
Task<GoogleWorkspaceAccessToken>Parameters
- scopes System.Collections.Generic.IEnumerable{System.String}
- cancellationToken System.Threading.CancellationToken = null
Inherited Methods
public override Boolean Equals(Object obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object