diff --git a/requirements.txt b/requirements.txt index 9c56698..f619115 100644 --- a/requirements.txt +++ b/requirements.txt @@ -2,4 +2,4 @@ Flask==2.3.2 Werkzeug==2.3.4 requests==2.30.0 Flask-JWT-Extended==4.4.4 -qwc-services-core==1.3.19 +qwc-services-core==1.3.20 diff --git a/server.py b/server.py index 6ffee2e..9dbaa96 100644 --- a/server.py +++ b/server.py @@ -7,7 +7,7 @@ from flask import Flask, request, jsonify, Response, stream_with_context, abort from flask_jwt_extended import create_access_token -from qwc_services_core.auth import auth_manager, optional_auth, get_auth_user +from qwc_services_core.auth import auth_manager, optional_auth, get_identity import requests import os @@ -36,7 +36,7 @@ def proxy(): abort(400, "Invalid parameters") filename = request.args.get('filename') - identity = get_auth_user() + identity = get_identity() urlparts = urlparse(url) headers = {} if identity and "%s:%d" % (urlparts.hostname, urlparts.port) == request.host: