Class JsonCredentialParameters (1.60.0)

public class JsonCredentialParameters

Holder for credential parameters read from JSON credential file. Fields are union of parameters for all supported credential types.

Inheritance

object > JsonCredentialParameters

Namespace

GoogleApisAuthOAuth2

Assembly

Google.Apis.Auth.dll

Fields

AuthorizedUserCredentialType

public const string AuthorizedUserCredentialType = "authorized_user"

UserCredential is created by the GCloud SDK tool when the user runs GCloud Auth Login.

Field Value
TypeDescription
string

ExternalAccountCredentialType

public const string ExternalAccountCredentialType = "external_account"

See https://cloud.google.com/iam/docs/workload-identity-federation on how to create external account credentials.

Field Value
TypeDescription
string

ServiceAccountCredentialType

public const string ServiceAccountCredentialType = "service_account"

ServiceAccountCredential is downloaded by the user from Google Developers Console.

Field Value
TypeDescription
string

Properties

Audience

public string Audience { get; set; }

The STS audience associated with an external account credential.

Property Value
TypeDescription
string

ClientEmail

public string ClientEmail { get; set; }

Client Email associated with ServiceAccountCredential obtained from Google Developers Console

Property Value
TypeDescription
string

ClientId

public string ClientId { get; set; }

Client Id associated with UserCredential created by GCloud Auth Login or with an external account credential.

Property Value
TypeDescription
string

ClientSecret

public string ClientSecret { get; set; }

Client Secret associated with UserCredential created by GCloud Auth Login or with an external account credential.

Property Value
TypeDescription
string

CredentialSourceConfig

public JsonCredentialParameters.CredentialSource CredentialSourceConfig { get; set; }

The credential source associated with an external account credential.

Property Value
TypeDescription
JsonCredentialParametersCredentialSource

PrivateKey

public string PrivateKey { get; set; }

Private Key associated with ServiceAccountCredential obtained from Google Developers Console.

Property Value
TypeDescription
string

PrivateKeyId

public string PrivateKeyId { get; set; }

Private Key ID associated with ServiceAccountCredential obtained from Google Developers Console.

Property Value
TypeDescription
string

ProjectId

public string ProjectId { get; set; }

Project ID associated with this credential.

Property Value
TypeDescription
string

QuotaProject

public string QuotaProject { get; set; }

Project ID associated with this credential for the purposes of quota calculations and billing.

Property Value
TypeDescription
string

RefreshToken

public string RefreshToken { get; set; }

Refresh Token associated with UserCredential created by GCloud Auth Login.

Property Value
TypeDescription
string

ServiceAccountImpersonationUrl

public string ServiceAccountImpersonationUrl { get; set; }

This is the URL for the service account impersonation request associated with an external account credential. If this is not set, the STS returned access token should be directly used without impersonation.

Property Value
TypeDescription
string

SubjectTokenType

public string SubjectTokenType { get; set; }

The STS subject token type associated with an external account credential.

Property Value
TypeDescription
string

TokenUrl

public string TokenUrl { get; set; }

The STS token exchange endpoint associated with an external account credential.

Property Value
TypeDescription
string

Type

public string Type { get; set; }

Type of the credential.

Property Value
TypeDescription
string

WorkforcePoolUserProject

public string WorkforcePoolUserProject { get; set; }

The GCP project number to be used for Workforce Pools external credentials.

Property Value
TypeDescription
string
Remarks

If this external account credential represents a Workforce Pool enabled identity and this values is not specified, then an API key needs to be used alongside this credential to call Google APIs.

Extension Method