Closed hden closed 6 years ago
Your Buddy authentication middleware is:
:duct.middleware.buddy/authentication
But the Ataraxy module expects the middleware to be in the following form to be included automatically (see the README):
:foo.middleware[.<namespace>]/<name>
This means you'll need to put the middleware binding in manually. If you take a look at the advanced section of the README, it shows you an example. In your case, you want something like:
:duct.module/ataraxy {"/" ^:auth/basic [:index]}
:duct.handler/ataraxy {:auth/basic #ig/ref :duct.middleware.buddy/authentication}
Also note that the Buddy authentication doesn't limit access to pages. For that, the restrict function is necessary.
Cool. Thanks!
I can't seem to get it to work.
Thanks in advance.