login

package
v1.166.0 Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseAccessToken added in v1.152.3

func ParseAccessToken(stdin afero.File) string

func Run

func Run(ctx context.Context, stdout io.Writer, params RunParams) error

func RunOpenCmd added in v1.115.4

func RunOpenCmd(ctx context.Context, input string) error

Types

type AccessTokenResponse added in v1.114.0

type AccessTokenResponse struct {
	SessionId   string `json:"id"`
	CreatedAt   string `json:"created_at"`
	AccessToken string `json:"access_token"`
	PublicKey   string `json:"public_key"`
	Nonce       string `json:"nonce"`
}

type LoginEncryption added in v1.114.0

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

func NewLoginEncryption added in v1.114.0

func NewLoginEncryption() (LoginEncryption, error)

type LoginEncryptor added in v1.114.0

type LoginEncryptor interface {
	// contains filtered or unexported methods
}

type RunParams added in v1.114.0

type RunParams struct {
	Token       string
	TokenName   string
	OpenBrowser bool
	SessionId   string
	Encryption  LoginEncryptor
	Fsys        afero.Fs
}

Jump to

Keyboard shortcuts

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