Juno and middleware

This is how you add basic authentication to your Juno app:


Where valid_user is the obvious function that takes user/pass and returns true/false.

Not exactly a sophisticated role-based auth, but I don't need that for my app (LDAP's access controls take care of it).


Comments powered by Disqus