Documentation
¶
Overview ¶
Package middleware provides Forge-compatible middleware for API key validation.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func APIKeyAuth ¶
APIKeyAuth returns middleware that validates API keys from the Authorization header (Bearer token) or X-API-Key header.
func RequireScopes ¶
RequireScopes returns middleware that checks the validated key has all of the specified scopes.
func ResultFromContext ¶
func ResultFromContext(ctx context.Context) (*keysmith.ValidationResult, bool)
ResultFromContext extracts the ValidationResult from the context.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.