myJwt

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2016 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckAndRefreshTokens

func CheckAndRefreshTokens(oldAuthTokenString string, oldRefreshTokenString string, oldCsrfSecret string) (newAuthTokenString, newRefreshTokenString, newCsrfSecret string, err error)

@adam-hanna: check if refreshToken["sub"] == authToken["sub"]? I don't think this is necessary bc a valid refresh token will always generate a valid auth token of the same "sub"

func CreateNewTokens

func CreateNewTokens(uuid string, role string) (authTokenString, refreshTokenString, csrfSecret string, err error)

func GrabUUID added in v0.0.2

func GrabUUID(authTokenString string) (string, error)

func InitJWT

func InitJWT() error

read the key files before starting http handlers

func RevokeRefreshToken

func RevokeRefreshToken(refreshTokenString string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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