flow

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: May 10, 2025 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthFlow

type AuthFlow interface {
	Token(ctx context.Context, config *oauth2.Config, options ...Option) (*oauth2.Token, error)
}

type BrowserFlow

type BrowserFlow struct{}

func NewBrowserFlow

func NewBrowserFlow() *BrowserFlow

func (*BrowserFlow) Token

func (s *BrowserFlow) Token(ctx context.Context, config *oauth2.Config, options ...Option) (*oauth2.Token, error)

type Option

type Option func(*Options)

func WithAuthURLParam

func WithAuthURLParam(key string, value string) Option

func WithPostParam

func WithPostParam(key string, value string) Option

func WithScopes

func WithScopes(scopes ...string) Option

func WithState

func WithState(state string) Option

type Options

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

func NewOptions

func NewOptions(opts []Option) *Options

func (*Options) CodeVerifier

func (o *Options) CodeVerifier() (string, error)

func (*Options) Scopes

func (o *Options) Scopes() []string

func (*Options) State

func (o *Options) State() string

type OutOfBandFlow

type OutOfBandFlow struct{}

func NewOutOfBandFlow

func NewOutOfBandFlow() *OutOfBandFlow

func (*OutOfBandFlow) Token

func (s *OutOfBandFlow) Token(ctx context.Context, config *oauth2.Config, options ...Option) (*oauth2.Token, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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