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).
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 |