login

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeState

func MakeState() string

Types

type AuthCodeLeg added in v0.4.32

type AuthCodeLeg interface {
	GetCode(appURL, state string) (string, error)
}

type BrowserLeg added in v0.4.32

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

func (*BrowserLeg) GetCode added in v0.4.32

func (f *BrowserLeg) GetCode(appURL string, state string) (string, error)

type Flow

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

func NewFlow added in v0.4.32

func NewFlow(appURL string, headless bool) *Flow

func (*Flow) Run

func (f *Flow) Run() (*Response, error)

type HeadlessLeg added in v0.4.32

type HeadlessLeg struct{}

func (*HeadlessLeg) GetCode added in v0.4.32

func (h *HeadlessLeg) GetCode(appURL, state string) (string, error)

type Response

type Response struct {
	UserID    string `json:"userId"`
	OrgID     string `json:"orgId"`
	Token     string `json:"token"`
	APIServer string `json:"apiServer"`
}

Jump to

Keyboard shortcuts

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