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).
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).
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-05 UTC."],[[["This webpage details the `Initializer` class for Compute credentials within the `Google.Apis.Auth.OAuth2` namespace, specifically for version 1.50.0 of the Google.Apis library, as seen in the listed versions."],["The `Initializer` class is used to set up Compute credentials and uses the `ComputeTokenUrl` as the default token server URL, which can be changed via the `GCE_METADATA_HOST` environment variable."],["The class inherits from `ServiceCredential.Initializer`, meaning it has inherited members like `TokenServerUrl`, `Clock`, `AccessMethod`, `HttpClientFactory`, `DefaultExponentialBackOffPolicy`, and `QuotaProject`."],["The `Initializer` class offers three constructors: a default constructor, a constructor that accepts a custom token URL, and a constructor that takes both a token URL and an OIDC token URL, which allows customization."],["The initializer class contains one property, the `OidcTokenUrl` which is used to get the open id connect token URL."]]],[]]