Documentation
¶
Index ¶
Constants ¶
View Source
const ContextKeyAllowedJobAliases = "auth.allowed_job_aliases"
ContextKeyAllowedJobAliases stores the scoped job aliases available to list endpoints.
View Source
const ContextKeyAuth = "auth"
ContextKeyAuth is the key used to store the authenticated API key in the Echo context.
Variables ¶
This section is empty.
Functions ¶
func Auth ¶
func Auth(svc *auth.Service, auditor *auth.AuditLogger, limiter *auth.RateLimiter) echo.MiddlewareFunc
Auth returns Echo middleware that enforces API key authentication and RBAC.
func GetAllowedJobAliases ¶
GetAllowedJobAliases returns the scoped aliases injected by the auth middleware.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.