def __init__(self, realm): BasicAuthAuthenticationPolicy.__init__(self, check=None, realm=realm) # TODO - G.M - 2018-09-21 - Disable callback is needed to have BasicAuth # correctly working, if enabled, callback method will try check method # who is now disabled (uneeded because we use directly # authenticated_user_id) and failed. self.callback = None
def __init__(self): BasicAuthAuthenticationPolicy.__init__( self, check=check_auth, )