auth

package
v0.0.0-...-7e76170 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2015 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Config jwt.Config
	Jwt    jwt.Jwt
)

Functions

func AdminRequired

func AdminRequired(c *echo.Context) error

func Authenticate

func Authenticate(email string, password string) interface{}

Return identity for login user

func Identity

func Identity(val interface{}) interface{}

Return user by id

func Init

func Init()

func Register

func Register(c *echo.Context) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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