Skip to content

Commit

Permalink
Store the redirect URL within the session
Browse files Browse the repository at this point in the history
In case a redirect URL is passed to the auth request, store it
within the session.
  • Loading branch information
ahukkanen committed Feb 6, 2024
1 parent 7d61b4a commit 2ea28d3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/omniauth/strategies/mpassid.rb
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,8 @@ def request_phase
authn_request = OneLogin::RubySaml::Authrequest.new
lang = lang_for_authn_request

session['saml_redirect_url'] = request.params['redirect_url']

with_settings do |settings|
url = authn_request.create(settings, additional_params_for_authn_request)
url += "&lang=#{CGI.escape(lang)}" unless lang.nil?
Expand Down

0 comments on commit 2ea28d3

Please sign in to comment.