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 +4 -4
- data/app/models/zaikio/access_token.rb +2 -2
- data/lib/zaikio/oauth_client/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ea835505816c2c715e98f907e37bc2af3ad5b18862de04e9eb8729c87409e949
|
4
|
+
data.tar.gz: 4ac1f29e8b3faf1faf947dae9b5c2f6e7bad14cbb5be3b437be533e4204c3c7d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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.
|
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)
|
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.
|
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-
|
11
|
+
date: 2020-08-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|