Skip to content

Commit

Permalink
Fixed bug when server is behind a proxy
Browse files Browse the repository at this point in the history
Avoid using the domain and protocol from the request URL, instead use the path and the URL parameters.
  • Loading branch information
GramThanos committed Oct 11, 2023
1 parent b2e1e54 commit 3ae9514
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/flask_pyoidc/flask_pyoidc.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3ae9514

Please sign in to comment.