cmd

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdLogin

func NewCmdLogin(f *Factory) *cobra.Command

func NewCmdRoot

func NewCmdRoot(f *Factory, version, buildDate string) (*cobra.Command, error)

func NewCmdToken

func NewCmdToken(f *Factory) *cobra.Command

func NewCmdVersion

func NewCmdVersion(f *Factory, version string, buildDate string) *cobra.Command

Types

type Factory

type Factory struct {
	Browser        browser.Opener
	Reader         ioreader.Reader
	TokenCacheRepo tokencache.Repo
	Logger         logger.LogWriter
	Clock          clock.Clock
}

func NewFactory

func NewFactory() *Factory

type LoginOpts

type LoginOpts struct {
	ConfigFile string
	LoginUser  string

	IssuerURL    string
	ClientID     string
	ClientSecret string
	ExtraScopes  []string
	UsePKCE      bool
	ForceRefresh bool

	GrantType                   string
	ListenAddress               []string
	AuthenticationTimeoutSec    int
	SkipOpenBrowser             bool
	BrowserCommand              string
	OpenURLAfterAuth            string
	RedirectURLHostname         string
	RedirectURLAuthCodeKeyboard string
	AuthRequestExtraParams      map[string]string
	Username                    string
	Password                    string
}

type TokenOpts

type TokenOpts struct {
	ConfigFile    string
	TokenCacheDir string
	LoginUser     string

	IssuerURL          string
	ClientID           string
	ClientSecret       string
	ExtraScopes        []string
	ForceRefresh       bool
	ReturnIDToken      bool
	ReturnRefreshToken bool
}

Jump to

Keyboard shortcuts

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