token

package
v0.0.0-...-378c04c Latest Latest
Warning

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

Go to latest
Published: Nov 10, 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 KeyFinder

type KeyFinder interface {
	FindKeyById(string) (*jose.JSONWebKey, error)
	FindKeyByUse(string) (*jose.JSONWebKey, error)
}

type SignedCodec

type SignedCodec struct {
	KeyFinder KeyFinder
	Issuer    string
	Audience  string
	Duration  time.Duration
}

func (*SignedCodec) DecodeToken

func (d *SignedCodec) DecodeToken(token string, dest interface{}) error

func (*SignedCodec) EncodeToken

func (d *SignedCodec) EncodeToken(claims interface{}) (string, error)

Jump to

Keyboard shortcuts

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