Class ComputeCredential.Initializer (1.59.0)

public class Initializer : ServiceCredential.Initializer

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

Inheritance

Object > ServiceCredential.Initializer > 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
NameDescription
tokenUrlString

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
NameDescription
tokenUrlString
oidcTokenUrlString

Properties

OidcTokenUrl

public string OidcTokenUrl { get; }

Gets the OIDC Token URL.

Property Value
TypeDescription
String

Extension Method