Package myproxy :: Package ws :: Package test :: Module test_httpbasicauth :: Class TestHttpBasicAuthCallBackAppMiddleware
[hide private]

Class TestHttpBasicAuthCallBackAppMiddleware

source code


Add an authentication function to the environ for HttpBasicAuthMiddleware to pick up and use. It behaves as an application returning a response

Instance Methods [hide private]
 
__init__(self, app, global_conf, **app_conf)
Follow standard Paste Deploy app factory function signature
source code
 
__call__(self, environ, start_response) source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  USERNAME = 'myusername'
  PASSWORD = 'mypassword'
  SUCCESS_RESPONSE = 'AUTHENTICATED'
  FAILURE_RESPONSE = 'FAILED'
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, app, global_conf, **app_conf)
(Constructor)

source code 

Follow standard Paste Deploy app factory function signature

Overrides: object.__init__