clientauth

package
v1.15.4 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2019 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClientCredentials

func ClientCredentials(ctx context.Context, clientID, clientSecret string, opts ...Option) oauth2.TokenSource

ClientCredentials returns a TokenSource that will retrieve client credentials for use with zveloAPI

Types

type Option

type Option func(*options)

An Option is used to configure different parts of this package

func WithScope

func WithScope(val ...string) Option

WithScope returns an option that overrides the default scopes, zapi.DefaultScopes

func WithTokenURL

func WithTokenURL(val string) Option

WithTokenURL returns an option that overrides the default TokenURL, zapi.Endpoint.TokenURL

Jump to

Keyboard shortcuts

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