def _login(self, environ, start_response):
     """Send a login response back to the client."""
     response = HTTPUnauthorized()
     response.www_authenticate = ('Basic', {'realm': self._realm})
     return response(environ, start_response)
示例#2
0
 def _login(self, environ, start_response):
     response = HTTPUnauthorized()
     response.www_authenticate = ('Basic', {'realm': self._realm})
     return response(environ, start_response)
 def _login(self, environ, start_response):
     response = HTTPUnauthorized()
     response.www_authenticate = ('Basic', {'realm': self._realm})
     return response(environ, start_response)