The "A functional approach to authorization" series
In this series of posts, I’ll look at how you might handle the common security challenge of authorization. That is, how can you ensure that clients of your code can only do what you want them to do?
This series will sketch out two different approaches, first using an approach called capability based security, and second using statically checked types to emulate access tokens.
Interestingly, both approaches tend to produce a cleaner, more modular design as a side effect, which is why I like them!
-
1. A functional approach to authorization
Capability based security and more -
2. Constraining capabilities based on identity and role
A functional approach to authorization, part 2 -
3. Using types as access tokens
A functional approach to authorization, part 3