octopus_auth 0.1.0.rc2 → 0.1.0.rc3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +1 -0
- data/lib/octopus_auth/authenticator.rb +3 -1
- data/lib/octopus_auth/configuration.rb +1 -0
- data/lib/octopus_auth/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 826544084e17baa43f7f6cf1b7d372a82f702b900758079e6b1f27bdf9c4a557
|
4
|
+
data.tar.gz: df7bc4b566621e579c0c1788d653fa0f2baee984d9db3cef98c01a65eb2d97ce
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ef1cb35e874555d690eabcc44610c181153bdc50e9338fafbb05d5331873774c2436c912366af0b7d15b71df24d38d9e6f7d1b4730ce21df2850245684227cd0
|
7
|
+
data.tar.gz: f124b4c7e3de3566ea9bd5a67f8bc26022bb4bb20eea9b57a10f878ae983d1524f359fc3344d73b8bd6f813fb542519e3790b5a2512d32218f7607105ad771bc
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -13,7 +13,9 @@ module OctopusAuth
|
|
13
13
|
return false if access_token.scope.to_sym != @scope
|
14
14
|
|
15
15
|
if access_token.expires_at.utc < Time.now.utc
|
16
|
-
|
16
|
+
unless OctopusAuth.configuration.model_readonly
|
17
|
+
access_token.update(active: false, expired_at: Time.now.utc)
|
18
|
+
end
|
17
19
|
return false
|
18
20
|
end
|
19
21
|
|
data/lib/octopus_auth/version.rb
CHANGED