public class ComputeCredential.Initializer : ServiceCredential.InitializerAn 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).
Namespace
Google.Apis.Auth.OAuth2Assembly
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 |
|