Documentation ¶
Index ¶
- func NewAuthenticationHandler(tokenValidator TokenValidator, nextHandler http.Handler) http.Handler
- func NewRequestHandler(store store.Store, valueGeneratorFactory types.ValueGeneratorFactory) (http.Handler, error)
- func NewX509Loader(store store.Store) types.CertsLoader
- type ConfigServer
- type ErrorResponse
- type JwtTokenValidator
- type TokenValidator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAuthenticationHandler ¶
func NewAuthenticationHandler(tokenValidator TokenValidator, nextHandler http.Handler) http.Handler
func NewRequestHandler ¶
func NewX509Loader ¶ added in v0.0.118
func NewX509Loader(store store.Store) types.CertsLoader
Types ¶
type ConfigServer ¶
type ConfigServer interface {
Start() error
}
func NewConfigServer ¶
func NewConfigServer(config config.ServerConfig) ConfigServer
type ErrorResponse ¶ added in v0.0.134
type ErrorResponse struct {
Error string `json:"error"`
}
func NewErrorResponse ¶ added in v0.0.133
func NewErrorResponse(err error) ErrorResponse
func (ErrorResponse) GenerateErrorMsg ¶ added in v0.0.134
func (e ErrorResponse) GenerateErrorMsg() string
type JwtTokenValidator ¶
type JwtTokenValidator struct {
// contains filtered or unexported fields
}
func NewJWTTokenValidatorWithKey ¶ added in v0.0.101
func NewJWTTokenValidatorWithKey(verificationKey *rsa.PublicKey) JwtTokenValidator
func NewJwtTokenValidator ¶
func NewJwtTokenValidator(jwtVerificationKeyPath string) (JwtTokenValidator, error)
func (JwtTokenValidator) Validate ¶
func (j JwtTokenValidator) Validate(tokenStr string) error
type TokenValidator ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.