devise-heroku-sso 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/devise-heroku-sso.rb +5 -1
- data/lib/devise-heroku-sso/version.rb +1 -1
- metadata +2 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 14e1cebdc987ee5fdc5742e1f2fafe3214f3bede
|
4
|
+
data.tar.gz: df573e6732027c7f04b0316315d91c6f2144062b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0488e34100b26c2f8d5216da67e6f68c9a5ffe7afe5d95d61026e488cb6b17dafb9d3ad99c397096d4236c3e3e5369cade7815af41b605125786ec4b332961a5
|
7
|
+
data.tar.gz: 48c1e623c94b148ef652d496bad38142bd211fbea3a52abf23046cd0bcc256c9f0ac248de12073d4dbd66dcfc20b55fc62319c46f1108f20d2de80d30230fed3
|
data/lib/devise-heroku-sso.rb
CHANGED
@@ -13,6 +13,10 @@ module HerokuSso
|
|
13
13
|
|
14
14
|
private
|
15
15
|
|
16
|
+
def sso_salt
|
17
|
+
ENV['HEROKU_SSO_SALT'] || ENV['SSO_SALT']
|
18
|
+
end
|
19
|
+
|
16
20
|
def authentication_result_for resource
|
17
21
|
resource ? success_authentication(resource) : fail!
|
18
22
|
end
|
@@ -29,7 +33,7 @@ module HerokuSso
|
|
29
33
|
end
|
30
34
|
|
31
35
|
def pre_token
|
32
|
-
"#{params[:id]}:#{
|
36
|
+
"#{params[:id]}:#{sso_salt}:#{params[:timestamp]}"
|
33
37
|
end
|
34
38
|
|
35
39
|
def token
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: devise-heroku-sso
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nikolay Samokhin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-05
|
11
|
+
date: 2014-06-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -92,4 +92,3 @@ signing_key:
|
|
92
92
|
specification_version: 4
|
93
93
|
summary: Devise strategy for Heroku SSO
|
94
94
|
test_files: []
|
95
|
-
has_rdoc:
|