Merge "Remove unnecessary oauth_api check"

This commit is contained in:
Jenkins 2015-05-11 11:18:51 +00:00 committed by Gerrit Code Review
commit c0fdd027e3
1 changed files with 0 additions and 3 deletions

View File

@ -35,9 +35,6 @@ class OAuth(auth.AuthMethodHandler):
def authenticate(self, context, auth_info, auth_context):
"""Turn a signed request with an access key into a keystone token."""
if not self.oauth_api:
raise exception.Unauthorized(_('%s not supported') % self.method)
headers = context['headers']
oauth_headers = oauth.get_oauth_headers(headers)
access_token_id = oauth_headers.get('oauth_token')