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 ¶
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
Click to show internal directories.
Click to hide internal directories.