Documentation ¶
Index ¶
Constants ¶
View Source
const ( ISS = "account-service" KID_HEADER = "kid" PAYLOAD_CLAIM = "payload" )
Variables ¶
View Source
var ( ErrInvalidSigningMethod = errors.New("invalid signing method") ErrKeyIdentifierNotFound = errors.New("key identifier not found") ErrKeyIdentifierEmpty = errors.New("key identifier empty") ErrInvalidToken = errors.New("invalid token") ErrInvalidClaim = errors.New("invalid claim") ErrInvalidPayload = errors.New("invalid payload") )
Functions ¶
func ParsePEMPrivateKey ¶
func ParsePEMPrivateKey(pem []byte) (*ecdsa.PrivateKey, error)
Types ¶
type CustomClaim ¶
type CustomClaim struct { jwt.StandardClaims Payload string `json:"payload"` }
Click to show internal directories.
Click to hide internal directories.