auth

package
v0.0.0-...-f7de4c5 Latest Latest
Warning

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

Go to latest
Published: May 26, 2016 License: Apache-2.0, BSD-3-Clause, CC-BY-3.0, + 3 more Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Login

func Login(m models.AuthModel) (*models.User, error)

Login authenticates user credentials based on setting.

func Register

func Register(name string, authenticator Authenticator)

Register add different authenticators to registry map.

Types

type Authenticator

type Authenticator interface {

	// Authenticate ...
	Authenticate(m models.AuthModel) (*models.User, error)
}

Authenticator provides interface to authenticate user credentials.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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