API Reference
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
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(GoogleCredential credential, Nullable<TimeSpan> fallbackTokenLifetime, String account) #Creates an adapter with an informational account label that is not credential evidence.
Parameters
- credential Google.Apis.Auth.OAuth2.GoogleCredential
- fallbackTokenLifetime System.Nullable{System.TimeSpan}
- account System.String
public GoogleApisCredentialSource(GoogleCredential credential, Nullable<TimeSpan> fallbackTokenLifetime, String account, GoogleWorkspaceCredentialBindingResolver credentialBindingResolver) #Creates an adapter that verifies account and grants through a provider-evidence resolver.
Parameters
- arg1 Google.Apis.Auth.OAuth2.GoogleCredential
- arg2 System.Nullable{System.TimeSpan}
- arg3 System.String
- arg4 OfficeIMO.GoogleWorkspace.GoogleWorkspaceCredentialBindingResolver
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
public GoogleApisCredentialSource(ITokenAccess credential, Nullable<TimeSpan> fallbackTokenLifetime, String account) #Creates an adapter with an informational account label that is not credential evidence.
Parameters
- credential Google.Apis.Auth.OAuth2.ITokenAccess
- fallbackTokenLifetime System.Nullable{System.TimeSpan}
- account System.String
public GoogleApisCredentialSource(ITokenAccess credential, Nullable<TimeSpan> fallbackTokenLifetime, String account, GoogleWorkspaceCredentialBindingResolver credentialBindingResolver) #Creates an adapter that verifies account and grants through a provider-evidence resolver.
Parameters
- arg1 Google.Apis.Auth.OAuth2.ITokenAccess
- arg2 System.Nullable{System.TimeSpan}
- arg3 System.String
- arg4 OfficeIMO.GoogleWorkspace.GoogleWorkspaceCredentialBindingResolver
Methods
public virtual async Task<GoogleWorkspaceAccessToken> AcquireAccessTokenAsync(IEnumerable<String> scopes, CancellationToken cancellationToken = null) #Task<GoogleWorkspaceAccessToken>Parameters
- scopes System.Collections.Generic.IEnumerable{System.String}
- cancellationToken System.Threading.CancellationToken = null
Inherited Methods
public override Boolean Equals(Object obj) #BooleanParameters
- obj Object