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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 00c0908e0912d618fb610829e9a8564f72d6cf88548c6546269982f07c23fcb9
4
- data.tar.gz: 2f50559bfcdc74b903853103fa4cf73ea37edad5ac6241d43282ad811d21246f
3
+ metadata.gz: 826544084e17baa43f7f6cf1b7d372a82f702b900758079e6b1f27bdf9c4a557
4
+ data.tar.gz: df7bc4b566621e579c0c1788d653fa0f2baee984d9db3cef98c01a65eb2d97ce
5
5
  SHA512:
6
- metadata.gz: 2d0f493cbaf4685d3529d018afe37e0e60ec4a50ce900460ae8424a474b5879869519e8a793773d0e750b0c7c8b23bc6031b56301fc6898f6e85074692c8c7a3
7
- data.tar.gz: 56d67d6f4e91db23b5227105ed1e9321e285df0b9c1c3b56985a29350ca41ade1893445d972a6689776f8aa04e7c2ffc971861a8e56fdea6db1fbe3046a3cde3
6
+ metadata.gz: ef1cb35e874555d690eabcc44610c181153bdc50e9338fafbb05d5331873774c2436c912366af0b7d15b71df24d38d9e6f7d1b4730ce21df2850245684227cd0
7
+ data.tar.gz: f124b4c7e3de3566ea9bd5a67f8bc26022bb4bb20eea9b57a10f878ae983d1524f359fc3344d73b8bd6f813fb542519e3790b5a2512d32218f7607105ad771bc
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- octopus_auth (0.1.0.rc2)
4
+ octopus_auth (0.1.0.rc3)
5
5
  activerecord (>= 3.0.0)
6
6
 
7
7
  GEM
data/README.md CHANGED
@@ -38,6 +38,7 @@ OctopusAuth.configure do |config|
38
38
  config.token_life_time = 2.hours
39
39
  config.token_length = 20
40
40
  config.model_class = AccessToken
41
+ config.model_readonly = true
41
42
  end
42
43
 
43
44
  ```
@@ -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
- access_token.update(active: false, expired_at: Time.now.utc)
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
 
@@ -5,5 +5,6 @@ module OctopusAuth
5
5
  attr_accessor :token_life_time
6
6
  attr_accessor :token_length
7
7
  attr_accessor :model_class
8
+ attr_accessor :model_readonly
8
9
  end
9
10
  end
@@ -1,3 +1,3 @@
1
1
  module OctopusAuth
2
- VERSION = "0.1.0.rc2"
2
+ VERSION = "0.1.0.rc3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: octopus_auth
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0.rc2
4
+ version: 0.1.0.rc3
5
5
  platform: ruby
6
6
  authors:
7
7
  - TINYpulse Devops