Пример #1
0
 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
Пример #2
0
 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
Пример #3
0
 def __init__(self):
     BasicAuthAuthenticationPolicy.__init__(
         self,
         check=check_auth,
     )