Skip to content

Latest commit

 

History

History
49 lines (34 loc) · 787 Bytes

README.md

File metadata and controls

49 lines (34 loc) · 787 Bytes

Client Authorization

Middleware usage

func WithClientIDAndPassKeyAuthorization

func WithClientIDAndPassKeyAuthorization(authenticator ClientAuthenticator) middleware

type ClientAuthenticator

type ClientAuthenticator interface {
	Authenticate(clientID, passKey string) error
}

type ClientAuthentication

type ClientAuthentication struct {
}

func NewClientAuthentication

func NewClientAuthentication(authConfig *Config) *ClientAuthentication

func (*ClientAuthentication) Authenticate

func (ca *ClientAuthentication) Authenticate(clientID, passKey string) error

type Config

type Config struct {
}

func NewConfig

func NewConfig(dbDriver, dbConnURL string) *Config