From acea6b7a7ad0e7dc8270d6978e2a175a1acdde26 Mon Sep 17 00:00:00 2001 From: Graham Dumpleton Date: Mon, 22 Jan 2018 17:38:13 +0800 Subject: Add host access callback to auth test script. --- tests/auth.wsgi | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests') diff --git a/tests/auth.wsgi b/tests/auth.wsgi index 6d9d668..77b6eae 100644 --- a/tests/auth.wsgi +++ b/tests/auth.wsgi @@ -1,3 +1,7 @@ +def allow_access(environ, host): + print('HOST', host, environ['REQUEST_URI']) + return True + def check_password(environ, user, password): print('USER', user, environ['REQUEST_URI']) if user == 'spy': -- cgit v1.2.1