Merge remote-tracking branch 'origin/swaggerlikeus'
This commit is contained in:
commit
250efd76b6
1 changed files with 1 additions and 1 deletions
|
@ -30,7 +30,7 @@ def validate_and_apply_oauth_token(token):
|
||||||
'error_description="The access token is invalid"'),
|
'error_description="The access token is invalid"'),
|
||||||
}
|
}
|
||||||
abort(401, message='OAuth access token could not be validated: %(token)s',
|
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():
|
elif validated.expires_at <= datetime.now():
|
||||||
logger.info('OAuth access with an expired token: %s', token)
|
logger.info('OAuth access with an expired token: %s', token)
|
||||||
authenticate_header = {
|
authenticate_header = {
|
||||||
|
|
Reference in a new issue