API Reference
Class
GoogleServiceAccountCredentialSource
Credential source that acquires Google access tokens by exchanging a signed service-account JWT assertion.
Inheritance
- Object
- GoogleServiceAccountCredentialSource
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 GoogleServiceAccountCredentialSource(String clientEmail, String privateKeyPem, String tokenEndpoint = null, GoogleWorkspaceSessionOptions sessionOptions = null) #Parameters
- clientEmail String
- privateKeyPem String
- tokenEndpoint String = null
- sessionOptions GoogleWorkspaceSessionOptions = null
Methods
public virtual async Task<GoogleWorkspaceAccessToken> AcquireAccessTokenAsync(IEnumerable<String> scopes, CancellationToken cancellationToken = null) #Returns:
Task<GoogleWorkspaceAccessToken>Parameters
- scopes IEnumerable<String>
- cancellationToken CancellationToken = null
public virtual Void Dispose() #Returns:
Voidpublic static GoogleServiceAccountCredentialSource FromFile(String serviceAccountJsonPath, GoogleWorkspaceSessionOptions sessionOptions = null) #Returns:
GoogleServiceAccountCredentialSourceParameters
- serviceAccountJsonPath String
- sessionOptions GoogleWorkspaceSessionOptions = null
public static GoogleServiceAccountCredentialSource FromJson(String serviceAccountJson, GoogleWorkspaceSessionOptions sessionOptions = null) #Returns:
GoogleServiceAccountCredentialSourceParameters
- serviceAccountJson String
- sessionOptions GoogleWorkspaceSessionOptions = null
Inherited Methods
public override Boolean Equals(Object obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object