...

Package gdch

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

Overview ▾

Constants

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

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.

type Options

Options for NewTokenProvider.

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