Class ComputeCredential.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).
Inherited Members
Namespace: Google.Apis.Auth.OAuth2
Assembly: Google.Apis.Auth.dll
Syntax
public class ComputeCredential.Initializer : ServiceCredential.Initializer
Constructors
Initializer()
Constructs a new initializer using the default compute token URL and the default OIDC token URL.
Declaration
public Initializer()
Initializer(string)
Constructs a new initializer using the given token URL and the default OIDC token URL.
Declaration
public Initializer(string tokenUrl)
Parameters
Type | Name | Description |
---|---|---|
string | tokenUrl |
Initializer(string, string)
Constructs a new initializer using the given token URL and OIDC token URL (optionally overriding the host using the GCE_METADATA_HOST environment variable).
Declaration
public Initializer(string tokenUrl, string oidcTokenUrl)
Parameters
Type | Name | Description |
---|---|---|
string | tokenUrl | |
string | oidcTokenUrl |
Properties
OidcTokenUrl
Gets the OIDC Token URL.
Declaration
public string OidcTokenUrl { get; }
Property Value
Type | Description |
---|---|
string |