Skip to content

Commit

Permalink
Fixed bug when server is behind a proxy (#169)
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 authored Oct 30, 2023
1 parent b2e1e54 commit 799b999
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 799b999

Please sign in to comment.