auth

package
v0.33.0 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthClientConfig

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

func GetDefaultAuthClientConf

func GetDefaultAuthClientConf() AuthClientConfig

func UnmarshalAuthClientConfFromIni

func UnmarshalAuthClientConfFromIni(conf ini.File) (cfg AuthClientConfig)

type AuthServerConfig

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

func GetDefaultAuthServerConf

func GetDefaultAuthServerConf() AuthServerConfig

func UnmarshalAuthServerConfFromIni

func UnmarshalAuthServerConfFromIni(conf ini.File) (cfg AuthServerConfig)

type OidcAuthConsumer

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

func NewOidcAuthVerifier

func NewOidcAuthVerifier(baseCfg baseConfig, cfg oidcServerConfig) *OidcAuthConsumer

func (*OidcAuthConsumer) VerifyLogin

func (auth *OidcAuthConsumer) VerifyLogin(loginMsg *msg.Login) (err error)

func (*OidcAuthConsumer) VerifyNewWorkConn

func (auth *OidcAuthConsumer) VerifyNewWorkConn(newWorkConnMsg *msg.NewWorkConn) (err error)

func (*OidcAuthConsumer) VerifyPing

func (auth *OidcAuthConsumer) VerifyPing(pingMsg *msg.Ping) (err error)

type OidcAuthProvider

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

func NewOidcAuthSetter

func NewOidcAuthSetter(baseCfg baseConfig, cfg oidcClientConfig) *OidcAuthProvider

func (*OidcAuthProvider) SetLogin

func (auth *OidcAuthProvider) SetLogin(loginMsg *msg.Login) (err error)

func (*OidcAuthProvider) SetNewWorkConn

func (auth *OidcAuthProvider) SetNewWorkConn(newWorkConnMsg *msg.NewWorkConn) (err error)

func (*OidcAuthProvider) SetPing

func (auth *OidcAuthProvider) SetPing(pingMsg *msg.Ping) (err error)

type Setter

type Setter interface {
	SetLogin(*msg.Login) error
	SetPing(*msg.Ping) error
	SetNewWorkConn(*msg.NewWorkConn) error
}

func NewAuthSetter

func NewAuthSetter(cfg AuthClientConfig) (authProvider Setter)

type TokenAuthSetterVerifier

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

func NewTokenAuth

func NewTokenAuth(baseCfg baseConfig, cfg tokenConfig) *TokenAuthSetterVerifier

func (*TokenAuthSetterVerifier) SetLogin

func (auth *TokenAuthSetterVerifier) SetLogin(loginMsg *msg.Login) (err error)

func (*TokenAuthSetterVerifier) SetNewWorkConn

func (auth *TokenAuthSetterVerifier) SetNewWorkConn(newWorkConnMsg *msg.NewWorkConn) error

func (*TokenAuthSetterVerifier) SetPing

func (auth *TokenAuthSetterVerifier) SetPing(pingMsg *msg.Ping) error

func (*TokenAuthSetterVerifier) VerifyLogin

func (auth *TokenAuthSetterVerifier) VerifyLogin(loginMsg *msg.Login) error

func (*TokenAuthSetterVerifier) VerifyNewWorkConn

func (auth *TokenAuthSetterVerifier) VerifyNewWorkConn(newWorkConnMsg *msg.NewWorkConn) error

func (*TokenAuthSetterVerifier) VerifyPing

func (auth *TokenAuthSetterVerifier) VerifyPing(pingMsg *msg.Ping) error

type Verifier

type Verifier interface {
	VerifyLogin(*msg.Login) error
	VerifyPing(*msg.Ping) error
	VerifyNewWorkConn(*msg.NewWorkConn) error
}

func NewAuthVerifier

func NewAuthVerifier(cfg AuthServerConfig) (authVerifier Verifier)

Jump to

Keyboard shortcuts

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