Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kill the redirect because it gives better interop with canvas in our case #7

Merged
merged 1 commit into from
Oct 7, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion lib/casserver/server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,16 @@ def self.init_database!
@lt = generate_login_ticket

if @gateway && @service
redirect @service, 303
# I'm changing this to render the logout instead of redirecting
# because the redirection wouldn't give a chance for the logout
# iframe trick to log out of the main site. Since we also have
# a default service now in the configuration, it isn't as important
# for that to be preserved anyway - it will send them back to the
# default service which is good for us too as we can then handle
# the redirect based on the user account type automatically.

# redirect @service, 303
render @template_engine, :logout
elsif @continue_url
render @template_engine, :logout
else
Expand Down