Skip to content

Commit

Permalink
Use get_identity instead of get_auth_user
Browse files Browse the repository at this point in the history
  • Loading branch information
manisandro committed Nov 29, 2023
1 parent 5370a4d commit 5d0d290
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 2 additions & 2 deletions server.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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/')
Expand Down

0 comments on commit 5d0d290

Please sign in to comment.