We still need to process the function if the auth header is invalid
Otherwise, the user gets a 500
This commit is contained in:
parent
f6a9afce90
commit
1c5300e439
1 changed files with 1 additions and 1 deletions
|
@ -187,7 +187,7 @@ def process_oauth(func):
|
||||||
normalized = [part.strip() for part in auth.split(' ') if part]
|
normalized = [part.strip() for part in auth.split(' ') if part]
|
||||||
if normalized[0].lower() != 'bearer' or len(normalized) != 2:
|
if normalized[0].lower() != 'bearer' or len(normalized) != 2:
|
||||||
logger.debug('Invalid oauth bearer token format.')
|
logger.debug('Invalid oauth bearer token format.')
|
||||||
return
|
return func(*args, **kwargs)
|
||||||
|
|
||||||
token = normalized[1]
|
token = normalized[1]
|
||||||
_validate_and_apply_oauth_token(token)
|
_validate_and_apply_oauth_token(token)
|
||||||
|
|
Reference in a new issue