Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( UsernameField = "username" PasswordField = "password" AuthFailedError error )
Functions ¶
This section is empty.
Types ¶
type Middleware ¶
type Middleware struct {
authenticate.Guard
}
func (Middleware) Handle ¶
func (m Middleware) Handle(r contracts.RequestContract, next pipeline.PipeHandler) contracts.ResponseContract
type UserProvider ¶
func NewUserProvider ¶
func NewUserProvider(db *gorm.DB) *UserProvider
func (*UserProvider) Attempt ¶
func (up *UserProvider) Attempt(r contracts.RequestContract) (authenticate.User, error)
func (*UserProvider) FindUserById ¶
func (up *UserProvider) FindUserById(id authenticate.UserIdentifier) (authenticate.User, error)
Click to show internal directories.
Click to hide internal directories.