classy_cas 0.9.2 → 0.9.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/classy_cas.rb +3 -3
- metadata +3 -3
data/lib/classy_cas.rb
CHANGED
|
@@ -152,16 +152,16 @@ module ClassyCAS
|
|
|
152
152
|
|
|
153
153
|
|
|
154
154
|
get '/logout' do
|
|
155
|
-
url = params[:url]
|
|
155
|
+
@url = params[:url]
|
|
156
156
|
|
|
157
157
|
if sso_session
|
|
158
158
|
@sso_session.destroy!(settings.redis)
|
|
159
159
|
response.delete_cookie(*sso_session.to_cookie(request.host))
|
|
160
160
|
warden.logout(:cas)
|
|
161
161
|
flash.now[:notice] = "Logout Successful."
|
|
162
|
-
if url
|
|
162
|
+
if @url
|
|
163
163
|
msg = " The application you just logged out of has provided a link it would like you to follow."
|
|
164
|
-
msg += "Please <a href=\"#{url}\">click here</a> to access <a href=\"#{url}\">#{url}</a>"
|
|
164
|
+
msg += "Please <a href=\"#{@url}\">click here</a> to access <a href=\"#{@url}\">#{@url}</a>"
|
|
165
165
|
flash.now[:notice] += msg
|
|
166
166
|
end
|
|
167
167
|
end
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: classy_cas
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 61
|
|
5
5
|
prerelease:
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 9
|
|
9
|
-
-
|
|
10
|
-
version: 0.9.
|
|
9
|
+
- 3
|
|
10
|
+
version: 0.9.3
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Andrew O'Brien
|