path: root/swiftkerbauth/
diff options
authorPrashanth Pai <>2013-11-06 17:30:28 +0530
committerLuis Pabon <>2013-11-17 16:34:11 -0800
commit991989bc04178442b2a6b766a67f7a26e60c08f0 (patch)
treee796215fbb45333290fdd293b608235b7f67493c /swiftkerbauth/
parentf64a3354185f32928e2568d9ece4a52fa4746c05 (diff)
Modularize swift-auth CGI script, add unit tests
- Moved most of swift-auth CGI script to - Added unit tests for - Made MEMCACHE_SERVERS, DEBUG_HEADERS, TOKEN_LIFE as configurable parameters Change-Id: I2e9e9823e8aa99dc2cf41327c55428350c8768dc Signed-off-by: Prashanth Pai <> Reviewed-on: Tested-by: Chetan Risbud <> Reviewed-by: Chetan Risbud <> Reviewed-by: Luis Pabon <> Tested-by: Luis Pabon <>
Diffstat (limited to 'swiftkerbauth/')
1 files changed, 2 insertions, 6 deletions
diff --git a/swiftkerbauth/ b/swiftkerbauth/
index 612299d..a1ba091 100644
--- a/swiftkerbauth/
+++ b/swiftkerbauth/
@@ -17,12 +17,8 @@ from traceback import format_exc
from eventlet import Timeout
from swift.common.swob import Request
-from swift.common.swob import HTTPBadRequest, HTTPForbidden, HTTPNotFound
- from swift.common.swob import HTTPSeeOther
-except ImportError:
- from swift.common.swob import HTTPFound as HTTPSeeOther
+from swift.common.swob import HTTPBadRequest, HTTPForbidden, HTTPNotFound, \
+ HTTPSeeOther
from swift.common.middleware.acl import clean_acl, parse_acl, referrer_allowed
from swift.common.utils import cache_from_env, get_logger, \