browser

package
v2.4.1 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2023 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoToken            = errors.New("no token found")
	ErrInvalidTokenValue  = errors.New("invalid token value")
	ErrInvalidContentType = errors.New("invalid content-type header")
)

Functions

This section is empty.

Types

type Browser added in v2.3.0

type Browser int
const (
	Bfirefox Browser = iota
	Bchromium
)

func (*Browser) Set added in v2.3.0

func (e *Browser) Set(v string) error

func (Browser) String added in v2.3.0

func (i Browser) String() string

type Client

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

Client is the client for Browser Auth Provider.

func New

func New(workspace string, opts ...Option) (*Client, error)

New create new browser based client.

func (*Client) Authenticate

func (cl *Client) Authenticate(ctx context.Context) (string, []*http.Cookie, error)

type Option added in v2.3.0

type Option func(*Client)

func OptBrowser added in v2.3.0

func OptBrowser(b Browser) Option

Jump to

Keyboard shortcuts

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