shibboleth-rails 0.3.6 → 0.3.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -12,7 +12,8 @@ class UserSessionsController < ApplicationController
12
12
 
13
13
  def create
14
14
  session[:simulate_id] = params[:user_id]
15
- redirect_to root_url
15
+ target = session.delete :target
16
+ redirect_to target || root_url
16
17
  end
17
18
 
18
19
  def destroy
@@ -32,6 +32,7 @@ module Shibboleth::Rails
32
32
  redirect_to [request.protocol, request.host,
33
33
  '/Shibboleth.sso/Login?target=', CGI.escape(requested_url)].join
34
34
  else
35
+ session['target'] = requested_url
35
36
  redirect_to new_user_session_url, :notice => 'Login first, please.'
36
37
  end
37
38
  end
@@ -1,5 +1,5 @@
1
1
  module Shibboleth
2
2
  module Rails
3
- VERSION = "0.3.6"
3
+ VERSION = "0.3.7"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shibboleth-rails
3
3
  version: !ruby/object:Gem::Version
4
- hash: 31
4
+ hash: 29
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 6
10
- version: 0.3.6
9
+ - 7
10
+ version: 0.3.7
11
11
  platform: ruby
12
12
  authors:
13
13
  - mikegee
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-12-05 00:00:00 Z
18
+ date: 2012-01-12 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: rails