authentication

package
v0.0.0-...-1293670 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2016 License: GPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewController

func NewController(a AuthService) router.HandlerExporter

NewController constructs a new authentication controller

Types

type AuthService

type AuthService interface {
	Authenticate(dtos.AuthenticationRequest) error
}

AuthService is a service that performs user authentication

func NewService

func NewService(f userFinder) AuthService

NewService constructs a new AuthService

type ErrInvalidUserOrPasswd

type ErrInvalidUserOrPasswd struct{}

ErrInvalidUserOrPasswd indicates authentication failed due to invalid credentials

func (ErrInvalidUserOrPasswd) Error

Jump to

Keyboard shortcuts

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