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"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis webpage details the \u003ccode\u003eInitializer\u003c/code\u003e 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.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eInitializer\u003c/code\u003e class is responsible for setting up Compute credentials, utilizing \u003ccode\u003eComputeTokenUrl\u003c/code\u003e by default, and it can be customized with specific token and OIDC token URLs.\u003c/p\u003e\n"],["\u003cp\u003eThe class inherits from \u003ccode\u003eServiceCredential.Initializer\u003c/code\u003e, and it supports the use of the \u003ccode\u003eGCE_METADATA_HOST\u003c/code\u003e environment variable to override the token server host.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eOidcTokenUrl\u003c/code\u003e property allows retrieval of the OIDC Token URL.\u003c/p\u003e\n"],["\u003cp\u003eThe page provides a listing of various versions of the documentation, with the content presented here being specific to version 1.55.0.\u003c/p\u003e\n"]]],[],null,[]]