Skip to content

Commit 799b999

Browse files
authored
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.
1 parent b2e1e54 commit 799b999

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/flask_pyoidc/flask_pyoidc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ def _authenticate(self, client, interactive=True):
114114
if not client.is_registered():
115115
self._register_client(client)
116116

117-
flask.session['destination'] = flask.request.url
117+
flask.session['destination'] = flask.request.full_path
118118

119119
# Use silent authentication for session refresh
120120
# This will not show login prompt to the user

0 commit comments

Comments
 (0)