From 3ae951460d44b70c5288fcf95d38560840b0a2e3 Mon Sep 17 00:00:00 2001 From: gramthanos Date: Wed, 11 Oct 2023 17:47:58 +0300 Subject: [PATCH] Fixed bug when server is behind a proxy Avoid using the domain and protocol from the request URL, instead use the path and the URL parameters. --- src/flask_pyoidc/flask_pyoidc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/flask_pyoidc/flask_pyoidc.py b/src/flask_pyoidc/flask_pyoidc.py index 42f6a1d..2e09765 100644 --- a/src/flask_pyoidc/flask_pyoidc.py +++ b/src/flask_pyoidc/flask_pyoidc.py @@ -114,7 +114,7 @@ def _authenticate(self, client, interactive=True): if not client.is_registered(): self._register_client(client) - flask.session['destination'] = flask.request.url + flask.session['destination'] = flask.request.full_path # Use silent authentication for session refresh # This will not show login prompt to the user