x2gobroker.basicauth module¶
Module providing a function for handling BasicAuth request processing.
- x2gobroker.basicauth.require_basic_auth(realm, validate_callback)[source]¶
Handler for
http(s)://BasisAuth processing.This function is used as a decorator for web request handler classes (such as tornado.web.RequestHandler).
- Parameters:
realm (
str) – authentication realmvalidate_callback (
func) – callback function for validating credentials
- Returns:
authentication
execute()function (orFalse)- Return type:
funcorbool