strongmind-auth 1.1.91 → 1.1.98
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/concerns/jwt_utilities.rb +8 -4
- data/lib/strongmind/auth/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: 5923cb7c2aae5f46d33ca15fcd0e5b35f7153c54a399fd83322c247274001ca7
|
4
|
+
data.tar.gz: 015dcb29507761c53b885f3cb2b6d5bab23aea4102a64cb114c0b6258fb7c8a1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e8c0e869f440f76e180fe00d03c8dfabf9402b6c2b43ce5162ae4fa142496655913ad7ed8c836e6e47b8fbf6a9d48d8e8ad5ebc3998479f35e429de407cb912f
|
7
|
+
data.tar.gz: d9786057f21fdaac11aed09d1952079a5590a5681812dad943294f1353e004fdd3c4d47bd05b141ae6de791cb43bd18719386d8a6e8671d18bfa883136a4b303
|
@@ -8,10 +8,14 @@ module JwtUtilities
|
|
8
8
|
payload = decode_jwt(jwt)
|
9
9
|
return false unless payload
|
10
10
|
|
11
|
-
scope_valid?(payload,
|
12
|
-
|
13
|
-
|
14
|
-
|
11
|
+
scope_valid = scope_valid?(payload,scopes)
|
12
|
+
nonce_valid = nonce_valid?(payload)
|
13
|
+
condition_key_valid = condition_key_valid?(payload, condition_key)
|
14
|
+
attributes_valid = attributes_valid?(payload, attributes)
|
15
|
+
|
16
|
+
Rails.logger.info "scope_valid: #{scope_valid}, nonce_valid: #{nonce_valid}, condition_key_valid: #{condition_key_valid}, attributes_valid: #{attributes_valid}"
|
17
|
+
|
18
|
+
scope_valid && nonce_valid && condition_key_valid && attributes_valid
|
15
19
|
end
|
16
20
|
|
17
21
|
def public_key
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: strongmind-auth
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.98
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Team Belding
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-07-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|