go.bigb.es/curator
Index
Functions
func AuthMiddleware(adminToken string, oidcProvider *oidcauth.Provider, next http.Handler) http.Handler
Types
type APIHandler struct { // contains filtered or unexported fields }
APIHandler serves the REST API for module management.
func (h *APIHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
ServeHTTP routes API requests.
type Handler struct { // contains filtered or unexported fields }
Handler serves the admin UI.
func New(st *store.Store, version string) (*Handler, error)
New creates a new admin handler.
func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request)
ServeHTTP routes admin requests.
AuthMiddleware protects admin routes with admin token and/or OIDC. Supports Bearer token in Authorization header, cookie-based sessions, and OIDC session cookies.