From 799b999dc6b71551c3a195cfe96ca6d7f67968ef Mon Sep 17 00:00:00 2001 From: Grammatopoulos Athanasios Vasileios Date: Mon, 30 Oct 2023 22:04:06 +0300 Subject: [PATCH] Fixed bug when server is behind a proxy (#169) 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