zaikio-oauth_client 0.4.0 → 0.4.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
  SHA256:
3
- metadata.gz: a0941f7172aa5d44ab3548647ddb08818ba3f49b3d16b6362c4763056da0ce81
4
- data.tar.gz: d8354f0e4f1e4a29c3340f9db82e6b257f8cd0af611aa856da5c7db35e6d9101
3
+ metadata.gz: ea835505816c2c715e98f907e37bc2af3ad5b18862de04e9eb8729c87409e949
4
+ data.tar.gz: 4ac1f29e8b3faf1faf947dae9b5c2f6e7bad14cbb5be3b437be533e4204c3c7d
5
5
  SHA512:
6
- metadata.gz: 8239d18c9d17d868190adb4d6430241684fb6f8b9333c3b56e28161f9bfe2127a1a6284165559244e507dec7bef4904d4497c100d964057f5fde051e16e754fc
7
- data.tar.gz: ba022530c742210508279d61937a3d0f330ecea230682e2d54373dc2479cf1016d95428df33429bafa03dafe8b1cb461f6a3ae5c41c1ffc6ddc8b9eef33257cd
6
+ metadata.gz: '0917a11dd529acf79292807c788760dd62da68a54ccc6cdf78d5f941659490cc219066c2a6cecf40b832ddd683b65530278725704765c6fcd6fd78414fe2f3ef'
7
+ data.tar.gz: f803dc294b5c744fd4650bf2d5ca21d646d92da89b08b70deb92864c5520737cdd0e6ca21d5957772bb69b486326a57602524ec32e87b88eb82784fee9209d53
@@ -26,7 +26,7 @@ module Zaikio
26
26
  # Scopes
27
27
  scope :valid, lambda {
28
28
  where("expires_at > :now", now: Time.current)
29
- .where.not(id: Zaikio::JWTAuth.blacklisted_token_ids)
29
+ .where.not(id: Zaikio::JWTAuth.revoked_token_ids)
30
30
  }
31
31
  scope :with_invalid_refresh_token, lambda {
32
32
  where("created_at <= ?", Time.current - Zaikio::AccessToken.refresh_token_valid_for)
@@ -36,7 +36,7 @@ module Zaikio
36
36
  now: Time.current,
37
37
  created_at_max: Time.current - refresh_token_valid_for)
38
38
  .where("refresh_token IS NOT NULL")
39
- .where.not(id: Zaikio::JWTAuth.blacklisted_token_ids)
39
+ .where.not(id: Zaikio::JWTAuth.revoked_token_ids)
40
40
  }
41
41
  scope :by_bearer, lambda { |bearer_type: "Person", bearer_id:, scopes: []|
42
42
  where(bearer_type: bearer_type, bearer_id: bearer_id)
@@ -1,5 +1,5 @@
1
1
  module Zaikio
2
2
  module OAuthClient
3
- VERSION = "0.4.0".freeze
3
+ VERSION = "0.4.1".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zaikio-oauth_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zaikio GmbH
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-08-18 00:00:00.000000000 Z
11
+ date: 2020-08-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails