token

package
v0.0.1-alpha.2....-5dc54fe Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSupportedLogins

func GetSupportedLogins() string

Types

type ExecCredentialPlugin

type ExecCredentialPlugin interface {
	Do() error
}

func New

type ExecCredentialWriter

type ExecCredentialWriter interface {
	Write(token adal.Token) error
}

type Options

type Options struct {
	LoginMethod    string
	ClientID       string
	ClientSecret   string
	Username       string
	Password       string
	ServerID       string
	TenantID       string
	Environment    string
	IsLegacy       bool
	TokenCacheFile string
}

func NewOptions

func NewOptions() Options

func (*Options) AddFlags

func (o *Options) AddFlags(fs *pflag.FlagSet)

func (*Options) UpdateFromEnv

func (o *Options) UpdateFromEnv()

func (*Options) Validate

func (o *Options) Validate() error

type TokenCache

type TokenCache interface {
	Read(string) (adal.Token, error)
	Write(string, adal.Token) error
}

type TokenProvider

type TokenProvider interface {
	Token() (adal.Token, error)
}

Jump to

Keyboard shortcuts

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