Merge remote-tracking branch 'origin/swaggerlikeus'

This commit is contained in:
jakedt 2014-03-25 17:27:00 -04:00
commit 250efd76b6

View file

@ -30,7 +30,7 @@ def validate_and_apply_oauth_token(token):
'error_description="The access token is invalid"'),
}
abort(401, message='OAuth access token could not be validated: %(token)s',
issue='invalid-oauth-token', token=token, header=authenticate_header)
issue='invalid-oauth-token', token=token, headers=authenticate_header)
elif validated.expires_at <= datetime.now():
logger.info('OAuth access with an expired token: %s', token)
authenticate_header = {