auth

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2017 License: MIT Imports: 8 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Auth0Manager

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

func NewAuth0Manager

func NewAuth0Manager(domain, clientID, connection string) *Auth0Manager

func (*Auth0Manager) Authenticate

func (a *Auth0Manager) Authenticate(username, password string) (bool, error)

type Authenticator

type Authenticator interface {
	Authenticate(user, pass string) (bool, error)
}

type AuthenticatorFunc

type AuthenticatorFunc func(string, string) (bool, error)

func NewCompositeAuthenticator

func NewCompositeAuthenticator(authenticators ...Authenticator) AuthenticatorFunc

func (AuthenticatorFunc) Authenticate

func (a AuthenticatorFunc) Authenticate(user, pass string) (bool, error)

type DynamoTokenManager

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

func NewDynamoTokenManager

func NewDynamoTokenManager(table string, dynamodb dynamodbiface.DynamoDBAPI) *DynamoTokenManager

func (*DynamoTokenManager) Authenticate

func (d *DynamoTokenManager) Authenticate(user, pass string) (bool, error)

func (*DynamoTokenManager) CreateToken

func (d *DynamoTokenManager) CreateToken(user string) (string, error)

func (*DynamoTokenManager) DeleteToken

func (d *DynamoTokenManager) DeleteToken(token string) error

type TokenManager

type TokenManager interface {
	CreateToken(user string) (string, error)
	DeleteToken(token string) error
}

Jump to

Keyboard shortcuts

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