gdch

package
v0.9.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 1, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

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
}

Options for NewTokenProvider.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL