API Reference
Class
GoogleWorkspaceAccessToken
Represents an acquired Google OAuth access token.
Inheritance
- Object
- GoogleWorkspaceAccessToken
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
- Method DelegateGoogleWorkspaceCredentialSource.AcquireAccessTokenAsync
- Method GoogleServiceAccountCredentialSource.AcquireAccessTokenAsync
- Method GoogleWorkspaceAccessToken.FromVerifiedCredential
- Method GoogleWorkspaceSession.AcquireAccessTokenAsync
- Method IGoogleWorkspaceCredentialSource.AcquireAccessTokenAsync
- Method StaticAccessTokenCredentialSource.AcquireAccessTokenAsync
Accepted by parameters
Constructors
GoogleWorkspaceAccessToken 2 overloads
public GoogleWorkspaceAccessToken(String accessToken, DateTimeOffset expiresAt, IReadOnlyList<String> scopes = null) #Creates a token without verified account or grant evidence.
Parameters
- accessToken System.String
- expiresAt System.DateTimeOffset
- scopes System.Collections.Generic.IReadOnlyList{System.String} = null
public GoogleWorkspaceAccessToken(String accessToken, DateTimeOffset expiresAt, IReadOnlyList<String> scopes, String account) #Creates a token with an informational account label. The label is not credential evidence and does not make the token eligible for guarded mutations.
Parameters
- accessToken System.String
- expiresAt System.DateTimeOffset
- scopes System.Collections.Generic.IReadOnlyList{System.String}
- account System.String
Methods
public static GoogleWorkspaceAccessToken FromVerifiedCredential(String accessToken, DateTimeOffset expiresAt, GoogleWorkspaceCredentialBinding credentialBinding) #Returns:
GoogleWorkspaceAccessTokenCreates a token bound to provider-verified account and scope evidence.
Parameters
- accessToken System.String
- expiresAt System.DateTimeOffset
- credentialBinding OfficeIMO.GoogleWorkspace.GoogleWorkspaceCredentialBinding
Inherited Methods
public override Boolean Equals(Object obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object
Properties
public String Account { get; } #Gets the credential-source account label, when supplied. Use CredentialBinding for verified evidence.
public GoogleWorkspaceCredentialBinding CredentialBinding { get; } #Gets provider-verified account and scope evidence, when supplied by the credential source.
public String AccessToken { get; } #public DateTimeOffset ExpiresAt { get; } #public IReadOnlyList<String> Scopes { get; } #