INNER CODE UNIT · Python
unauthorized
evolution-foundation/evo-nexus · dashboard/backend/app.py:738
def unauthorized():
return jsonify({"error": "Authentication required"}), 401
# --------------- Auth Middleware ---------------
PUBLIC_PATHS = {
"/api/auth/login",
"/api/auth/needs-setup",
"/api/auth/setup",
"/api/health",
"/api/auth/needs-onboarding",
"/api/config/workspace-status",
"/api/version",
"/api/version/check",
"/api/agents/active",
}
def _try_api_token_auth():
"""Resolve an Authorization: Bearer <token> header against DASHBOARD_API_TOKEN.