Class ComputeCredential.Initializer (1.68.0)

public class ComputeCredential.Initializer : ServiceCredential.Initializer

An initializer class for the Compute credential. It uses EffectiveComputeTokenUrl as the token server URL (optionally overriding the host using the GCE_METADATA_HOST environment variable).

Inheritance

object > ServiceCredentialInitializer > ComputeCredential.Initializer

Namespace

Google.Apis.Auth.OAuth2

Assembly

Google.Apis.Auth.dll

Constructors

Initializer()

public Initializer()

Constructs a new initializer using the default compute token URL and the default OIDC token URL.

Initializer(string)

public Initializer(string tokenUrl)

Constructs a new initializer using the given token URL and the default OIDC token URL.

Parameter
Name Description
tokenUrl string

Initializer(string, string)

public Initializer(string tokenUrl, string oidcTokenUrl)

Constructs a new initializer using the given token URL and OIDC token URL (optionally overriding the host using the GCE_METADATA_HOST environment variable).

Parameters
Name Description
tokenUrl string
oidcTokenUrl string

Properties

OidcTokenUrl

public string OidcTokenUrl { get; }

Gets the OIDC Token URL.

Property Value
Type Description
string

Extension Method