loginserver

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LoginData

type LoginData struct {
	Token     string `json:"token"`
	CSRFToken string `json:"csrf"`
}

LoginData represents a login token and CSRF token pair.

type LoginServer

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

LoginServer can be used to automatically intercept login tokens.

func New

func New(startFlowURL string) (*LoginServer, error)

New creates a new login server.

func (*LoginServer) Close

func (ls *LoginServer) Close() error

Close closes the login server.

func (*LoginServer) Start

func (ls *LoginServer) Start() error

Start starts the login server.

func (*LoginServer) StartFlowURL

func (ls *LoginServer) StartFlowURL() string

StartFlowURL returns the start flow URL for the login server based flow.

func (*LoginServer) Token

func (ls *LoginServer) Token() <-chan string

Token returns a channel from which the login token can be retrieved.

Jump to

Keyboard shortcuts

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