yada

grav 2018-10-07T16:05:15.000100Z

Why is access control a special case in Yada? Why not implement it, as the Yada docs state in “12.2. Declaring policies across multiple resources”, namely walk the routing tree with a function that augments the resources?

grav 2018-10-07T16:07:52.000100Z

Or am I maybe misunderstanding 12.2?

dominicm 2018-10-07T16:11:22.000100Z

I don't understand the question. We use clojure walk and bidi to achieve that now.

grav 2018-10-07T16:18:06.000100Z

Thinking about it, I think you’re right, I’m mixing up things. Of course you can add :access-control by walking the tree. What I’m after is, why at all have :access-control, when it’s just a matter of sending back yet another HTTP status code?

malcolmsparks 2018-10-07T16:24:42.000100Z

There's quite a lot involved in access control. See the yada blog on authentication. Also, CORS pre-flight requests. Yada implements quite complex semantics from policy statements.