authservice

package
v0.0.0-...-5d64da7 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2018 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckTokensForExpiry

func CheckTokensForExpiry()

CheckTokensForExpiry checks active tokens for expiry; invalidates any found

func CreateJwtToken

func CreateJwtToken(user *models.User) (string, error)

CreateJwtToken create a token

func JWTExpiryService

func JWTExpiryService()

JWTExpiryService will trigger CheckTokensForExpiry every minute

func LoginWithUserPass

func LoginWithUserPass(username string, password string) string

func VerifyJWT

func VerifyJWT(token string) (bool, *models.JwtToken)

Types

type JWTClaims

type JWTClaims struct {
	models.User
	jwt.StandardClaims
}

JWTClaims type

Jump to

Keyboard shortcuts

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