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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b0b453d9fd9d8fb5a6d4695ce767513013eda32d
4
- data.tar.gz: e3e8c0ab270933c5b337918681a154538a100e7d
3
+ metadata.gz: 14e1cebdc987ee5fdc5742e1f2fafe3214f3bede
4
+ data.tar.gz: df573e6732027c7f04b0316315d91c6f2144062b
5
5
  SHA512:
6
- metadata.gz: e567da81a7a0279660b7f39970150c41e423eb5a5025f3573abf3c3cd0a335095679cae7f2513e71c7d50d13f4c214160f4e5ca7945fa204c821f1f0325c8548
7
- data.tar.gz: 8dbc0af3f79867f2217a9f12691cf85cc6cf84097d5bfcc9c4440469efafa75b47a269e0e8ed9aeb6c16c1fc4ace97b838582348352ae236b2052524cdc68978
6
+ metadata.gz: 0488e34100b26c2f8d5216da67e6f68c9a5ffe7afe5d95d61026e488cb6b17dafb9d3ad99c397096d4236c3e3e5369cade7815af41b605125786ec4b332961a5
7
+ data.tar.gz: 48c1e623c94b148ef652d496bad38142bd211fbea3a52abf23046cd0bcc256c9f0ac248de12073d4dbd66dcfc20b55fc62319c46f1108f20d2de80d30230fed3
@@ -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]}:#{ENV['HEROKU_SSO_SALT']}:#{params[:timestamp]}"
36
+ "#{params[:id]}:#{sso_salt}:#{params[:timestamp]}"
33
37
  end
34
38
 
35
39
  def token
@@ -1,4 +1,4 @@
1
1
  module DeviseHerokuSso
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
4
4
 
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.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-30 00:00:00.000000000 Z
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: