Skip to content

Commit

Permalink
YDA-5403: store username in session before redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
lwesterhof committed Oct 17, 2023
1 parent f6952a0 commit bacb3cf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions user/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -443,6 +443,8 @@ def prepare_user() -> None:
connman.clean(session.sid)
session.clear()

session['login_username'] = login_username

# If the username matches the domain set for OIDC
if should_redirect_to_oidc(login_username):
return redirect(oidc_authorize_url(login_username))
Expand Down

0 comments on commit bacb3cf

Please sign in to comment.