diff --git a/platypush/backend/http/app/utils.py b/platypush/backend/http/app/utils.py index 19143321f7..3233fd851d 100644 --- a/platypush/backend/http/app/utils.py +++ b/platypush/backend/http/app/utils.py @@ -112,6 +112,8 @@ def _authenticate_token(): if 'X-Token' in request.headers: user_token = request.headers['X-Token'] + elif 'Authorization' in request.headers and request.headers['Authorization'].startswith('Bearer '): + user_token = request.headers['Authorization'][len('Bearer '):] elif 'token' in request.args: user_token = request.args.get('token') else: