jwt

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Gatekeeper

type Gatekeeper struct {
	// contains filtered or unexported fields
}

func NewGatekeeper

func NewGatekeeper(tokenSecret string, iss string) *Gatekeeper

func NewGatekeeperFromEnv

func NewGatekeeperFromEnv() *Gatekeeper

func (*Gatekeeper) Sign

func (g *Gatekeeper) Sign(clientID string) (authenticating.Token, error)

func (*Gatekeeper) Verify

func (g *Gatekeeper) Verify(tokenDigest string) (authenticating.Token, error)

type Token

type Token struct {
	jwt.Payload
	ClientID string `json:"client_id"`
}

Jump to

Keyboard shortcuts

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