Basic authentication middleware

auth_basic(account_eval_func, basic_realm = "this_jug_server")

Arguments

account_eval_func

a function to which the username and password arguments will be passed and which should return TRUE for a valid combination and FALSE for an invalid one.

basic_realm

the user visible realm that will be returned through the WWW-Authenticate header in case of an unauthenticated request