Skip to content

gojekfarm/client-id-auth-middleware

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published