sso-auth 0.1.1 → 0.1.2
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 +4 -4
- data/lib/sso/auth/engine.rb +2 -2
- data/lib/sso/auth/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 16414f6855c1086a9bfef8ce283c9db95bb3e9a5
|
|
4
|
+
data.tar.gz: 5685f81df19520b186241ea34e74fa69997ef043
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 18c9c75d8c266194396bed0975b2f25ea42eb6a01fc82ba3313a629b57ec2c49c560eced3652a99460036a4cf36347fc2a0d6fbb91d62e549fbdedd35db97a52
|
|
7
|
+
data.tar.gz: 95b7dd2e2def84145fc170a520b760dbbd94fc405d000f14adab4dce255fcf234988ca4bbcfcb9df72cab82fc211e808eaf349c2241c1bb1ce6cb911e7027370
|
data/lib/sso/auth/engine.rb
CHANGED
|
@@ -105,11 +105,11 @@ module Sso
|
|
|
105
105
|
|
|
106
106
|
define_singleton_method :rewrite_devise_session_methods do
|
|
107
107
|
def self.serialize_into_session(record)
|
|
108
|
-
[record.uid, record.authenticatable_salt]
|
|
108
|
+
[record.uid.to_s, record.authenticatable_salt]
|
|
109
109
|
end
|
|
110
110
|
|
|
111
111
|
def self.serialize_from_session(key, salt)
|
|
112
|
-
record = find_by(:uid => key)
|
|
112
|
+
record = find_by(:uid => key.to_s)
|
|
113
113
|
record if record && record.authenticatable_salt == salt
|
|
114
114
|
end
|
|
115
115
|
end
|
data/lib/sso/auth/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: sso-auth
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- http://openteam.ru
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-03-
|
|
11
|
+
date: 2014-03-17 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: cancan
|