Skip to content

Commit

Permalink
Merge pull request #3 from Aeon/support-return-url
Browse files Browse the repository at this point in the history
append request path to the login url
  • Loading branch information
Jerome Riga committed Dec 7, 2015
2 parents 03c7dbd + 4ababaa commit cbc4506
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/rack/cas_client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,9 @@ def redirect_to_cas_for_authentication(env)
validation_retry = 0
end
previous_redirect_to_cas = Time.now


redirect_url += '&from=' + URI.encode_www_form_component(env['ORIGINAL_FULLPATH'])

request = Rack::Request.new(env)
response = Rack::Response.new(["redirect to #{redirect_url}"],302, {'Location' => redirect_url, 'Content-Type' => 'text/plain'})

Expand Down

0 comments on commit cbc4506

Please sign in to comment.