|
|
|
|
|
by antonvs
61 days ago
|
|
> I think a lot of people have a wrong perception of how "complicated" authorization systems need to be It depends what the authorization requirements are. For consumer-grade security, you're right. But when you start getting into the requirements of large, security-sensitive organizations, there's a lot of unavoidable complexity. But those contexts often influence the development of security systems, so some of the complexity you're referring to relate to requirements most users don't have. |
|
Most complexity that usually plagues authorization systems comes from complex authentication requirements, and can thus be largely isolated there. That's also where many (often legacy systems) lay a bad foundation, because they from the get-go tangle authentication & authorization into thing.
In a model as described above, that just turns into a slightly different `actor`. With that you can also handle things like context-aware authorization without littering your codebase.