Documentation
¶
Index ¶
- func Authenticate(log *zap.Logger, authClient AuthClient) func(http.Handler) http.Handler
- func Authorize(log *zap.Logger, authClient AuthClient, requiredRole string) func(http.Handler) http.Handler
- func GetClaims(ctx context.Context) (*auth.Claims, error)
- func Logger(logger *zap.Logger) func(http.Handler) http.Handler
- func Metrics(next http.Handler) http.Handler
- type AuthClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Authenticate ¶
Authenticate checks the validity of a token
func Authorize ¶
func Authorize(log *zap.Logger, authClient AuthClient, requiredRole string) func(http.Handler) http.Handler
Authorize checks rights to perform certain requests
Types ¶
Click to show internal directories.
Click to hide internal directories.