zaikio-jwt_auth 0.2.4 → 0.2.5

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: 16afec7be22352a9cc13e7bc0e65edfcbd1aef93073e3cb4f8f3059eda576859
4
- data.tar.gz: f1608ab958c199ff881416298bc17ffd02c3aea3f41315789009af817542f7c3
3
+ metadata.gz: c12ee3b69a3ce0152c39d0af1a5af71bc79ac24651b622e7cfa411c851c8d35f
4
+ data.tar.gz: 48e86c7cf283611de01b8754b5125f16545107c576a544c0c91c9d78be8ebac7
5
5
  SHA512:
6
- metadata.gz: 52e9deeaed67d548070b6e28317e000232831896dcef98dabd1e333f2e05e4a6166618ff7cf176e88ff0a6cdb148d2291604366f3f7155149a904a821128bfe1
7
- data.tar.gz: 570301e458fbba82a6ace338dcbc4be1f481d2e20d53a0d28b40f096bf56baf154408ce7ae4cb5b18d691f071580de64b012d3daabf5a81f4b8a87db95186039
6
+ metadata.gz: 22cbcb8445e7c8a7bc56aff7516a4dbce5f5763b41a37599fd123957950883af076f5138d40ceef37ee9a0d8d121e36adb924ac1d9d06aaf4f1df4e762cede4d
7
+ data.tar.gz: 1d2d5d926d21a79eb734b6ddfd1b4c03f8b7b17b4fc8261bc11dba58722adea46340cb2901c24ac0588553a5d78048145d4ded1e84333246db4e9dfa023b8ca3
@@ -32,9 +32,10 @@ module Zaikio
32
32
  def self.blacklisted_token_ids
33
33
  return [] if mocked_jwt_payload
34
34
 
35
- return configuration.blacklisted_token_ids if configuration.blacklisted_token_ids
36
-
37
- DirectoryCache.fetch("api/v1/blacklisted_access_tokens.json", expires_after: 60.minutes)["blacklisted_token_ids"]
35
+ configuration.blacklisted_token_ids || DirectoryCache.fetch(
36
+ "api/v1/blacklisted_access_tokens.json",
37
+ expires_after: 60.minutes
38
+ )["blacklisted_token_ids"]
38
39
  end
39
40
 
40
41
  def self.included(base)
@@ -1,5 +1,5 @@
1
1
  module Zaikio
2
2
  module JWTAuth
3
- VERSION = "0.2.4".freeze
3
+ VERSION = "0.2.5".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zaikio-jwt_auth
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - crispymtn
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2020-05-04 00:00:00.000000000 Z
13
+ date: 2020-06-04 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: oj