login

package
v0.4.25 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2020 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 BrowserFlow

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

func (*BrowserFlow) Close

func (f *BrowserFlow) Close() error

func (*BrowserFlow) Run

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

type Flow

type Flow interface {
	Run() (*Response, error)
	Close() error
}

func NewBrowserFlow

func NewBrowserFlow(appURL string, state string) Flow

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