mirror of
https://github.com/GSA/notifications-api.git
synced 2026-01-30 06:21:50 -05:00
This pull request fixes a bug in authentication.
If the service does not have any api keys, there would be an error but it was not formed well.
This commit is contained in:
@@ -48,6 +48,8 @@ def requires_auth():
|
||||
except TokenDecodeError:
|
||||
errors_resp = authentication_response("Invalid token: signature", 403)
|
||||
|
||||
if not api_client['secret']:
|
||||
errors_resp = authentication_response("Invalid token: signature", 403)
|
||||
return errors_resp
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user