Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JWTResponse ¶
type JwtContext ¶
type JwtContext interface { CreatePair(claims map[string]interface{}) (*JWTResponse, *errorhandler.Response) ParseJWT(auth string) (map[string]interface{}, *errorhandler.Response) }
func NewJWT ¶
func NewJWT(opts ...Option) (JwtContext, error)
NewJwtContext is the constructor for the jwt context
type JwtOptions ¶
type JwtOptions struct { PublicKeyPath string PrivateKeyPath string Kid string Issuer string Subject string }
JwtOptions defines the jwt configuration
type Option ¶
type Option func(*JwtOptions)
Option is the func interface to assign options
func WithJWTPrivateKeyPath ¶
WithJWTPrivateKeyPath aims to set the private key path
func WithJWTPublicKeyPath ¶
WithJWTPublicKeyPath aims to set the public key path
func WithJWTSubject ¶
WithJWTSubject aims to set the subject
Click to show internal directories.
Click to hide internal directories.