File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,9 @@ def set_patron
3434
3535get "/logout" do
3636 session . clear
37- redirect "https://shibboleth.umich.edu/cgi-bin/logout?https://lib.umich.edu/"
37+ weblogin_logout_url = URI . encode_www_form_component ( "https://shibboleth.umich.edu/cgi-bin/logout?https://lib.umich.edu/" )
38+ log_out_url = "/oauth2/sign_out?rd=#{ weblogin_logout_url } "
39+ redirect log_out_url
3840end
3941
4042before do
Original file line number Diff line number Diff line change 4444 end
4545
4646 context "/logout" do
47- it "clears the session and redirects to shibboleth " do
47+ it "clears the session and redirects to oauth2/sign_out " do
4848 get "/logout"
4949 expect ( last_request . env [ "rack.session" ] [ :uniqname ] ) . to be_nil
50- expect ( last_response . location ) . to eq ( "https://shibboleth.umich.edu/cgi-bin/logout?https://lib.umich.edu/ ")
50+ expect ( last_response . location ) . to include ( "oauth2/sign_out ")
5151 end
5252 end
5353end
You can’t perform that action at this time.
0 commit comments