Remove swift-y bits from generic token auth.

This commit is contained in:
Todd Willey 2011-06-22 19:14:07 -04:00
parent 6d2b51e871
commit dbbc17b8a5
1 changed files with 0 additions and 13 deletions

View File

@ -159,8 +159,6 @@ class AuthProtocol(object):
claims = self._expound_claims()
# Store authentication data
self.env['keystone.claims'] = claims
self.env['swift.authorize'] = self.authorize
if claims:
# TODO(Ziad): add additional details we may need,
# like tenant and group info
@ -185,17 +183,6 @@ class AuthProtocol(object):
#Send request downstream
return self._forward_request()
def authorize(self, req):
env = req.environ
tenant = env.get('keystone.claims', {}).get('tenant')
if not tenant:
return HTTPExpectationFailed('Unable to locate auth claim',
request=req)
if req.path.startswith('/v1/AUTH_%s' % tenant):
return None
return HTTPUnauthorized(request=req)
# NOTE(todd): unused
def get_admin_auth_token(self, username, password, tenant):
"""