Skip to content
Discussion options

You must be logged in to vote

Thanks! I think you've identified an important extra dimension: the backend route/RBAC contract should probably be treated as an input to the authorization architecture, rather than creating another independent permission layer in the frontend.

If the backend is authoritative about both:

permission → resource → route

I'd avoid maintaining a separate frontend mapping like:

analytics:view → /dashboard/analytics
billing:view   → /dashboard/billing

in multiple places. That's where the spaghetti can come back.

Instead, I'd think about the architecture as:

Backend RBAC Contract
        │
        ├── permissions
        └── resource/route definitions
                 │
                 ▼
     …

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Im-younique
Comment options

@gilangabdian
Comment options

Answer selected by Im-younique
@Im-younique
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants