From 5d0d29024dcf33f0e13ccef47dbd7fc9cc221959 Mon Sep 17 00:00:00 2001 From: Sandro Mani Date: Wed, 29 Nov 2023 17:59:51 +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 5b715a8..c26b0b1 100644 --- a/requirements.txt +++ b/requirements.txt @@ -5,4 +5,4 @@ flask-restx==1.1.0 Flask-JWT-Extended==4.4.4 requests==2.31.0 psycopg2==2.9.6 -qwc-services-core==1.3.19 +qwc-services-core==1.3.20 diff --git a/server.py b/server.py index 3d93ad5..713f1fd 100644 --- a/server.py +++ b/server.py @@ -7,7 +7,7 @@ import json import psycopg2 -from qwc_services_core.auth import auth_manager, optional_auth, get_auth_user, get_username +from qwc_services_core.auth import auth_manager, optional_auth, get_identity, get_username from qwc_services_core.tenant_handler import TenantHandler from qwc_services_core.runtime_config import RuntimeConfig from external_ows_layers import ExternalOwsLayers @@ -66,7 +66,7 @@ def post(self, mapid): app.logger.debug("tenant: %s" % tenant) config = config_handler.tenant_config(tenant) - identity = get_auth_user() + identity = get_identity() ogc_service_url = config.get( 'ogc_service_url', 'http://localhost:5013/')