zaikio-jwt_auth 2.4.1 → 2.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/zaikio/jwt_auth/version.rb +1 -1
- data/lib/zaikio/jwt_auth.rb +3 -2
- 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: 6d5bebc720e60571c4c015cb4d3e54cd04cd50b797f85d3291950d244591782c
|
|
4
|
+
data.tar.gz: cd31b4e8189a012ea6d458e3b1d1afbaf031066fa303b77b339171e68ce98d47
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: da5c78a82cc6550aed06d3815d16c51c0e982f7874bb2ac3cd82a6268ae7f368c0ec714a915ed2989b7028911f0bffb3729c7d815e2fd3ccfee5e9e49217e5aa
|
|
7
|
+
data.tar.gz: 911921aff82874c9ece8c94c288f9ce2fbef18759bf8f2ba4de317a1cc63d608eef04cb28e3c5ab8b73ff2d0bc81d7e86fb7fbc9c9dd6584e9a4690680d90e25
|
data/lib/zaikio/jwt_auth.rb
CHANGED
|
@@ -119,7 +119,7 @@ module Zaikio
|
|
|
119
119
|
end
|
|
120
120
|
|
|
121
121
|
def update_revoked_access_tokens_by_webhook
|
|
122
|
-
return unless params[:name]
|
|
122
|
+
return unless %w[directory.revoked_access_token zaikio.revoked_access_token].include?(params[:name])
|
|
123
123
|
|
|
124
124
|
DirectoryCache.update("api/v1/revoked_access_tokens.json", expires_after: 60.minutes) do |data|
|
|
125
125
|
data["revoked_token_ids"] << params[:payload][:access_token_id]
|
|
@@ -192,7 +192,8 @@ module Zaikio
|
|
|
192
192
|
|
|
193
193
|
def show_error_if_authorize_by_jwt_subject_type_fails(token_data)
|
|
194
194
|
if !self.class.authorize_by_jwt_subject_type ||
|
|
195
|
-
self.class.authorize_by_jwt_subject_type == token_data.subject_type
|
|
195
|
+
self.class.authorize_by_jwt_subject_type == token_data.subject_type ||
|
|
196
|
+
(self.class.authorize_by_jwt_subject_type == "Person" && token_data.on_behalf_of_id)
|
|
196
197
|
return
|
|
197
198
|
end
|
|
198
199
|
|
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: 2.
|
|
4
|
+
version: 2.6.0
|
|
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: 2023-05
|
|
13
|
+
date: 2023-06-05 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: activejob
|