lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

On Wed, Oct 6, 2010 at 10:16 AM, Fabio Mascarenhas <> wrote:

For the authentication part there is mk.auth
which will work with any WSAPI application (and with other more exotic
types if you fallback to the programmatic API instead of using the
filters). Documentation is quite sparse, but there is an example at

Nice! Maybe 'filter' could take a parameter to reply with a "Not authorized" status code directly instead of calling the filtered application. It simplifies the application logic (i.e. not having to check for MK_AUTH_ERROR in every handler ? )