oauth

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Header = "authorization"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Credential

type Credential struct {
	// contains filtered or unexported fields
}

func NewCredential

func NewCredential(accessToken string, opts ...Option) (Credential, error)

func (Credential) GetRequestMetadata

func (c Credential) GetRequestMetadata(ctx context.Context, uri ...string) (map[string]string, error)

func (Credential) RequireTransportSecurity

func (c Credential) RequireTransportSecurity() bool

type Option

type Option = func(c *Credential)

func WithInsecureTransport

func WithInsecureTransport(insecure bool) Option

Jump to

Keyboard shortcuts

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