75 words, 1 min read
β οΈ This post links to an external website. β οΈ
Authorization logic gets messy fast.
The Ash Framework book warns:
βItβs possible to encode complicated logic, but itβs also pretty easy to make a mess.β
Thatβs catnip for me.
Why is it so easy to make a mess in authorization code? Are better patterns possible? Or is the problem itself just messy?
As someone who leans functional, I tend to see authorization as a problem of combining predicates, which is a job for the monoid.
continue reading on www.joekoski.com
If this post was enjoyable or useful for you, please share it! If you have comments, questions, or feedback, you can email my personal email. To get new posts, subscribe use the RSS feed.