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 129d6ac commit f30f5b2
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 @@ -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
4 changes: 2 additions & 2 deletions server.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit f30f5b2

Please sign in to comment.