Add explicit config parameter to the JWT auth methods
This commit is contained in:
parent
460137779f
commit
6ae3faf7fc
5 changed files with 16 additions and 17 deletions
|
@ -144,7 +144,7 @@ def identity_from_bearer_token(bearer_header):
|
|||
logger.debug('Validating auth header: %s', bearer_header)
|
||||
|
||||
try:
|
||||
payload = decode_bearer_header(bearer_header, instance_keys)
|
||||
payload = decode_bearer_header(bearer_header, instance_keys, app.config)
|
||||
except InvalidBearerTokenException as bte:
|
||||
logger.exception('Invalid bearer token: %s', bte)
|
||||
raise InvalidJWTException(bte)
|
||||
|
|
Reference in a new issue