grantor

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TokenGrantor

type TokenGrantor struct {
	jwtconfig.CommonTokenConfig
}

TokenGrantor creates and issues JWT tokens.

func NewTokenGrantor

func NewTokenGrantor() *TokenGrantor

NewTokenGrantor returns an instance of TokenGrantor

func (*TokenGrantor) GrantToken

func (g *TokenGrantor) GrantToken(method string, userClaims *jwtclaims.UserClaims) (string, error)

GrantToken returns a signed token from user claims

func (*TokenGrantor) Validate

func (g *TokenGrantor) Validate() error

Validate check whether TokenGrantor has valid configuration.

Jump to

Keyboard shortcuts

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