devise_ssl_session_verifiable 2.0.0 → 3.0.0
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.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1b4da46a65704128810bd70becfa1041d466cb6b
|
4
|
+
data.tar.gz: 6ae88d93a95c522e23564cd6c4e0addb56024de5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fdd2eda952c8f69b217ac66af6dbe571740ecd703e17bb032178b396c64d45b0076e523e51be440e08ba11861c574b1cc0fa6344eaf63947e9c5c1b3990e5404
|
7
|
+
data.tar.gz: 136fda2a251de9a7df3b44a59ec43d5835298c64baf8b43ce73916bbef01187ee171e3345d5af017b0772385d891e1728dc92b28dc90a44d19c942a231ea39f8
|
data/README.md
CHANGED
@@ -31,17 +31,17 @@ Setup the custom failure app and route in your routes:
|
|
31
31
|
:controllers => { :sessions => 'users/sessions' }
|
32
32
|
|
33
33
|
devise_scope :user do
|
34
|
-
|
34
|
+
scope as: "user" do
|
35
|
+
resource :session_verification, :only => [:new, :create]
|
36
|
+
end
|
35
37
|
end
|
36
38
|
```
|
37
39
|
|
38
|
-
The
|
40
|
+
The new_user_session_verification_path should be under SSL. In your custom sessions controller, add a verify action like this:
|
39
41
|
|
40
42
|
```ruby
|
41
|
-
class Users::
|
42
|
-
|
43
|
-
|
44
|
-
def verify
|
43
|
+
class Users::SessionVerificationController < Devise::SessionsController
|
44
|
+
def new
|
45
45
|
@back_to = stored_location_for(:user)
|
46
46
|
if session[:unverified_user]
|
47
47
|
@unverified_user = User.serialize_from_session(*session[:unverified_user])
|
@@ -22,7 +22,7 @@ module DeviseSslSessionVerifiable
|
|
22
22
|
private
|
23
23
|
def verify_session_path
|
24
24
|
opts = {}
|
25
|
-
route = :"
|
25
|
+
route = :"new_#{scope}_session_verification_path"
|
26
26
|
opts[:format] = request_format unless skip_format?
|
27
27
|
|
28
28
|
config = Rails.application.config
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: devise_ssl_session_verifiable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 3.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Reinsch
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-06-
|
11
|
+
date: 2013-06-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: devise
|
@@ -96,7 +96,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
96
96
|
version: '0'
|
97
97
|
requirements: []
|
98
98
|
rubyforge_project: devise_ssl_session_verifiable
|
99
|
-
rubygems_version: 2.0.
|
99
|
+
rubygems_version: 2.0.3
|
100
100
|
signing_key:
|
101
101
|
specification_version: 4
|
102
102
|
summary: Secure access to SSL based pages while sharing a common session between HTTP
|