Skip to content
This repository was archived by the owner on Mar 19, 2025. It is now read-only.

Commit 5a9e215

Browse files
authored
Merge pull request rubycas#25 from adamdruppe/logout
use default so logout then login is consistent
2 parents 11b1264 + d8464cc commit 5a9e215

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/casserver/server.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,10 @@ def self.init_database!
528528
# "logout" page, we take the user back to the login page with a "you have been logged out"
529529
# message, allowing for an opportunity to immediately log back in. This makes it
530530
# easier for the user to log out and log in as someone else.
531-
@service = clean_service_url(params['service'] || params['destination'])
531+
532+
# BZ modification: always use default service so logout/login goes back to our main
533+
# site (which can redirect) regardless of where they came from
534+
@service = clean_service_url(settings.config[:default_service]) # params['service'] || params['destination'])
532535
@continue_url = params['url']
533536

534537
@gateway = params['gateway'] == 'true' || params['gateway'] == '1'

0 commit comments

Comments
 (0)