package gdch

import "cloud.google.com/go/auth/credentials/internal/gdch"

Index

Constants

const (
	// GrantType is the grant type for the token request.
	GrantType = "urn:ietf:params:oauth:token-type:token-exchange"
)

Functions

func NewTokenProvider

func NewTokenProvider(f *credsfile.GDCHServiceAccountFile, o *Options) (auth.TokenProvider, error)

NewTokenProvider returns a cloud.google.com/go/auth.TokenProvider from a GDCH cred file.

Types

type Options

type Options struct {
	STSAudience string
	Client      *http.Client
	Logger      *slog.Logger
}

Options for NewTokenProvider.

Source Files

gdch.go

Version
v0.20.0 (latest)
Published
Apr 6, 2026
Platform
js/wasm
Imports
17 packages
Last checked
1 hour ago

Tools for package owners.