devise-heroku-sso 1.0.3 → 1.0.4
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/version.rb +1 -1
- data/lib/devise-heroku-sso.rb +3 -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: 5df018ed83b7bea21c3cd50ddd13e9c629b8aa4b
|
4
|
+
data.tar.gz: 292a189e8830cd8e26f325fb8ccf5faf141b94b6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b07b8b3ce4b53939d8a37c8fc17e87140d676ce74d7d038cb86aa32098d322f208d9a1feacc3141672e68dad9643fbdf621a68ab4b1d6ed877e544592a75393a
|
7
|
+
data.tar.gz: 57ef576d1fbc3d08f0cc633bb23166776a73e03130fdd3254b19283077aef3cb8733a2a81c07c0addd6bf5fab65446723e90fcf99ed6c3014d86f88338119872
|
data/lib/devise-heroku-sso.rb
CHANGED
@@ -3,6 +3,7 @@ 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?} "
|
6
7
|
::Rails.logger.warn "[HEROKU-SSO] valid: #{valid_token?} && #{!token_expired?} "
|
7
8
|
valid_token? && !token_expired?
|
8
9
|
end
|
@@ -38,7 +39,8 @@ module HerokuSso
|
|
38
39
|
end
|
39
40
|
|
40
41
|
def token
|
41
|
-
|
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}"
|
42
44
|
Digest::SHA1.hexdigest(pre_token).to_s
|
43
45
|
end
|
44
46
|
|