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, designed for use in .NET environments, with the latest version being 1.69.0."],["The `Initializer` class is responsible for setting up Compute credentials, utilizing `ComputeTokenUrl` by default, and it can be customized with specific token and OIDC token URLs."],["The class inherits from `ServiceCredential.Initializer`, and it supports the use of the `GCE_METADATA_HOST` environment variable to override the token server host."],["The `OidcTokenUrl` property allows retrieval of the OIDC Token URL."],["The page provides a listing of various versions of the documentation, with the content presented here being specific to version 1.55.0."]]],[]]