keychain

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2019 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package keychain manages the validation and processing of jwt tokens

Index

Constants

This section is empty.

Variables

View Source
var (

	// ErrInvalidKey is returned when a public key is invalid
	ErrInvalidKey = errors.New("invalid public key")
)

Functions

func ImportKeys added in v1.3.0

func ImportKeys(keyData []byte) error

ImportKeys import keys in the standard jwks json format

func ImportKeysFromURL added in v1.3.0

func ImportKeysFromURL(jwksURL string) error

ImportKeysFromURL will fetch and import the public keys from the specified url

func ValidateToken

func ValidateToken(tokenString string, scopes ...[]string) (*jwt.Token, error)

ValidateToken validates a jwt token

Types

This section is empty.

Jump to

Keyboard shortcuts

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