Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthMiddleware ¶
func AuthMiddleware(providers []string, validator TokenValidator, resolver ActorResolver) func(http.Handler) http.Handler
AuthMiddleware extracts the credentials (JWT or API Key) and injects the Actor into the context.
func ForContext ¶
ForContext retrieves the Actor from the context and a boolean indicating success.
Types ¶
Click to show internal directories.
Click to hide internal directories.