Show / Hide Table of Contents

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

Inheritance
object
ServiceCredential.Initializer
ComputeCredential.Initializer
Inherited Members
ServiceCredential.Initializer.TokenServerUrl
ServiceCredential.Initializer.Clock
ServiceCredential.Initializer.AccessMethod
ServiceCredential.Initializer.HttpClientFactory
ServiceCredential.Initializer.DefaultExponentialBackOffPolicy
ServiceCredential.Initializer.QuotaProject
ServiceCredential.Initializer.Scopes
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
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
In this article
Back to top Generated by DocFX