auth

package
v0.0.0-...-96c2995 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2018 License: GPL-3.0 Imports: 18 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateJWT

func CreateJWT(email string, host string, issuer string, expires time.Duration, subject string) ([]byte, error)

func Load

func Load(r *mux.Router, db *sqlx.DB, log *logrus.Logger, config *config.AuthenticationConfig)

Types

type AuthUser

type AuthUser struct {
	Email    string
	Password string
}

type JWToken

type JWToken string

type User

type User struct {
	Email    string
	Password string
	Org_id   int64
}

Jump to

Keyboard shortcuts

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