Fork me on GitHub
#luminus
<
2017-08-28
>
socksy11:08:31

The documentation on how to do auth with compojure api uses defmethod with restructure-param :auth-rules... this feels very cumbersome (in terms of a leaky abstraction). Is this still the method one would use these days?

socksy11:08:18

seems even just nicer to just put it under :middleware for now...

yogthos12:08:06

yeah putting wrap-restricted under :middleware would be fine too, just wanted to show a self-contained example

socksy12:08:46

cool, thanks. I'm wondering now how different types of authorizations would work, e.g. with access rules now. Playing around a bit