source: TI12-security/trunk/MyProxyWebService/myproxy/server/test/httpbasicauth.ini @ 6897

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI12-security/trunk/MyProxyWebService/myproxy/server/test/httpbasicauth.ini@6945
Revision 6897, 788 bytes checked in by pjkersha, 9 years ago (diff)

Fixed setting of authentication realm for HTTP Basic Auth middleware and improved interface to callback function by providing a exception type for the callback function to use to pass back message and HTTP status code.

Line 
1#
2# HTTP Basic Auth WSGI Testing environment configuration
3#
4# The %(here)s variable will be replaced with the parent directory of this file
5#
6[server:main]
7use = egg:Paste#http
8host = 0.0.0.0
9port = 5000
10
11[pipeline:main]
12pipeline = AuthenticateFuncFilter HttpBasicAuthFilter TestApp
13
14[app:TestApp]
15paste.app_factory = myproxy.server.test.test_httpbasicauth:TestApp
16
17[filter:AuthenticateFuncFilter]
18paste.filter_app_factory = myproxy.server.test.test_httpbasicauth:TestHttpBasicAuthCallBackAppMiddleware
19
20[filter:HttpBasicAuthFilter]
21paste.filter_app_factory = myproxy.server.wsgi.httpbasicauth:HttpBasicAuthMiddleware.filter_app_factory
22prefix = httpbasicauth.
23httpbasicauth.authnFuncEnvKeyName = HTTPBASICAUTH_FUNC
24httpbasicauth.rePathMatchList = /auth
25httpbasicauth.realm = test-realm
Note: See TracBrowser for help on using the repository browser.