diff --git a/auth/auth.py b/auth/auth.py index fc317067b..b67a42668 100644 --- a/auth/auth.py +++ b/auth/auth.py @@ -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 = {