From f30f5b27a70f88456061ca893b239586183cadd5 Mon Sep 17 00:00:00 2001 From: Sandro Mani Date: Wed, 29 Nov 2023 18:00:34 +0100 Subject: [PATCH] Use get_identity instead of get_auth_user --- requirements.txt | 2 +- server.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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: