DEV Community

Discussion on: Don't use JWT for Authorization!

Collapse
 
sohan26 profile image
Sohan AuthZed

OAuth scopes face the same problems as pre-canned roles - Sometimes they're not fine grained enough, and if you just do one-scope-per-thing that can be done, your scope list gets too big to store and manage effectively.

Here's a real-world example: You have a scope for an Admin role. Now suppose you need a billing-admin (only change billing settings), or auditor (see everything, do nothing), or an assistant (federate access, do nothing).. you get my drift.

Eventually user-defined roles really break the OAuth paradigm.