token

package
v0.0.0-...-ef83997 Latest Latest
Warning

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

Go to latest
Published: May 2, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	TokenManager token.Manager
)

Functions

func GenerateToken

func GenerateToken(identityID string, identityUsername string, privateKey *rsa.PrivateKey) (string, error)

GenerateToken generates a JWT token and signs it using the given private key

func GenerateTokenObject

func GenerateTokenObject(identityID string, identityUsername string, privateKey *rsa.PrivateKey) (*jwt.Token, error)

GenerateTokenObject generates a JWT token and signs it using the given private key

func NewManager

func NewManager() token.Manager

NewManager returns a new token Manager for handling tokens

func PrivateKey

func PrivateKey() *rsa.PrivateKey

Types

This section is empty.

Jump to

Keyboard shortcuts

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