validator

package
v0.0.0-...-4a00b77 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2019 License: BSL-1.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var KeyServerCertCommonName string

KeyServerCertCommonName has to be set to the address of the server used to retrieve keys

Functions

func ValidateToken

func ValidateToken(t string) error

ValidateToken takes a JWT string and checks it's validity

Types

type ErrInternalError

type ErrInternalError string

ErrInternalError signalizes something connection related failed.

func (ErrInternalError) Error

func (e ErrInternalError) Error() string

type ErrKeyserverAddrNotSet

type ErrKeyserverAddrNotSet string

ErrKeyserverAddrNotSet signalizes that the JWT has no key URL embedded and can therefore not be validated.

func (ErrKeyserverAddrNotSet) Error

func (e ErrKeyserverAddrNotSet) Error() string

type ErrTokenInvalid

type ErrTokenInvalid string

ErrTokenInvalid signalizes an invalid JWT.

func (ErrTokenInvalid) Error

func (e ErrTokenInvalid) Error() string

Jump to

Keyboard shortcuts

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