Files
dify/api/tests/unit_tests/libs
GareArc 501c0b8746 feat(api): add require_scope decorator (Phase A.4)
Route-level scope gate; pairs with validate_bearer. Bearer holding the
catch-all SCOPE_FULL ('full', carried by dfoa_) passes any check;
narrower bearers (dfoe_, future PATs) need the exact scope listed in
the route decorator.

No v1.0 route applies it yet — apps/datasets controllers will be the
first consumers when those plans land. Programming-error guard: if
@require_scope runs without @validate_bearer above it, raises
RuntimeError instead of silently allowing.

Plan: docs/superpowers/plans/2026-04-26-openapi-migration.md (in difyctl repo).
2026-04-26 23:27:48 -07:00
..
2025-09-09 17:11:49 +08:00
2025-10-21 11:26:58 +08:00
2026-02-09 14:57:23 +08:00
2025-10-21 11:26:58 +08:00
2025-09-09 17:11:49 +08:00
2025-08-28 09:36:39 +08:00