devise-heroku-sso 1.0.4 → 1.0.5
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 +0 -4
- data/lib/devise-heroku-sso/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7ee6476e03831360bef4189f1b944f61e3739f6c
|
4
|
+
data.tar.gz: 026db799f195d017aa713a1f0702b6dbd3cec119
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f8679c80a4afd49535b2f58517e4ddc74cb62db3bc6d0059eeb2426b2d58864d3737b0e1b792aeb58765e4c266f19157dd0b9ea4456e18acfad375ee4032adf5
|
7
|
+
data.tar.gz: 9da026c13a1b7b536a56981527fd422a65a0cc302e1306806eac5c0a327c64503766c6d0d7406d11e5160b19640ace1b945f8dc75b68ce55b966096af1e2f14a
|
data/lib/devise-heroku-sso.rb
CHANGED
@@ -3,8 +3,6 @@ require 'devise/strategies/authenticatable'
|
|
3
3
|
module HerokuSso
|
4
4
|
class CustomStrategy < Devise::Strategies::Authenticatable
|
5
5
|
def valid?
|
6
|
-
puts "[HEROKU-SSO] valid: #{valid_token?} && #{!token_expired?} "
|
7
|
-
::Rails.logger.warn "[HEROKU-SSO] valid: #{valid_token?} && #{!token_expired?} "
|
8
6
|
valid_token? && !token_expired?
|
9
7
|
end
|
10
8
|
|
@@ -39,8 +37,6 @@ module HerokuSso
|
|
39
37
|
end
|
40
38
|
|
41
39
|
def token
|
42
|
-
puts "[HEROKU-SSO] #{pre_token} -> #{Digest::SHA1.hexdigest(pre_token).to_s}"
|
43
|
-
::Rails.logger.warn "[HEROKU-SSO] #{pre_token} -> #{Digest::SHA1.hexdigest(pre_token).to_s}"
|
44
40
|
Digest::SHA1.hexdigest(pre_token).to_s
|
45
41
|
end
|
46
42
|
|