Show / Hide Table of Contents

Class ComputeCredential.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
System.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
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Google.Apis.Auth.OAuth2
Assembly: Google.Apis.Auth.dll
Syntax
public class 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
System.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
System.String tokenUrl
System.String oidcTokenUrl

Properties

OidcTokenUrl

Gets the OIDC Token URL.

Declaration
public string OidcTokenUrl { get; }
Property Value
Type Description
System.String
In This Article
Back to top