Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthHandler ¶
func New ¶
func New(c *AuthHandlerConfig) (*AuthHandler, error)
func (*AuthHandler) ParseJWT ¶
func (ah *AuthHandler) ParseJWT(token string) (*jwt.Token, jwt.MapClaims, error)
type AuthHandlerConfig ¶
type AuthHandlerConfig struct {
EdDSAPublicKeyFile string `json:"eddsa_public_key_file" env:"CONTENT_SERVICE_AUTH_EDDSA_PUBLIC_KEY_FILE"`
}
func NewConfig ¶
func NewConfig() *AuthHandlerConfig
func (*AuthHandlerConfig) FromEnv ¶
func (c *AuthHandlerConfig) FromEnv() error
Click to show internal directories.
Click to hide internal directories.