summaryrefslogtreecommitdiff
path: root/fbin/api.py
diff options
context:
space:
mode:
Diffstat (limited to 'fbin/api.py')
-rw-r--r--fbin/api.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/fbin/api.py b/fbin/api.py
index 5659b3a..dc7e1f8 100644
--- a/fbin/api.py
+++ b/fbin/api.py
@@ -31,7 +31,8 @@ def authenticate():
if scheme != 'Bearer':
abort(400)
try:
- token = jwt.decode(token, current_app.config['SECRET_KEY'], issuer=request.url_root)
+ token = jwt.decode(token, current_app.config['SECRET_KEY'], issuer=request.url_root,
+ algorithms=[current_app.config['API_JWT_ALGORITHM']])
except jwt.InvalidTokenError:
abort(403)
try: