Documentation ¶
Index ¶
Constants ¶
View Source
const ( //BearerAuthHeader - authorization header name for bearer token BearerAuthHeader string = "Authorization" //BearerExpiry - key for token expiry BearerExpiry string = "expiry" )
Variables ¶
This section is empty.
Functions ¶
func GetPKCS1PublicKeyFromPEMBytes ¶
GetPKCS1PublicKeyFromPEMBytes - reads the public key from bytes
Types ¶
type EncodingType ¶
type EncodingType string
EncodingType - types of encoding supported
const ( //Base64 - base64 encoding/decoding will be used Base64 EncodingType = "base64" )
type RSADecode ¶
type RSADecode struct { PublicKey string Algorithm jwa.SignatureAlgorithm PublicKeyEncodingType EncodingType }
RSADecode - object which implements the jwt token
func (RSADecode) InstrumentJWTBearerToken ¶
func (decode RSADecode) InstrumentJWTBearerToken(next http.HandlerFunc) http.HandlerFunc
InstrumentJWTBearerToken - sets the jwt claims to the context headers.
Click to show internal directories.
Click to hide internal directories.