jwtutil

package
v0.0.0-...-731e0e7 Latest Latest
Warning

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

Go to latest
Published: May 2, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ForwardProxyClaims

type ForwardProxyClaims struct {
	*model.User
	jwt.StandardClaims
}

type JwtUtil

type JwtUtil struct {
	ExpireSeconds  int
	HmacSigningKey []byte
	Issuer         string
}

func (*JwtUtil) CreateToken

func (jwtUtil *JwtUtil) CreateToken(user *model.User) (tokenString string, expiryTime time.Time, err error)

func (*JwtUtil) ValidateToken

func (jwtUtil *JwtUtil) ValidateToken(tokenString string) (user *model.User, expiryTime time.Time, err error)

Jump to

Keyboard shortcuts

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