strongmind-auth 1.1.91 → 1.1.96
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/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: b828d05af64497829e3afeaa5ecd30032b29607d0f2c6fe40c2b7d4749e20ccf
|
4
|
+
data.tar.gz: 1b25d940887983e20cae358ccfaecd5677148c17c8a015f1a94cb03c033329cc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ae72f00d0963d5ccc8754319f1f5538deadc815f61d1476ceffaf53141ecc6e9278032d84c7d593b34b01afbfa70ab6aa9a68663941c931128ef9898b97f54ed
|
7
|
+
data.tar.gz: '02844567498acadffe477830af0994dc5610f0ffe7ba3793853e1bdcef1fcdeb6a44b9272237c748000598d4327336b7fd9e70c7a91be76eac53633366f7450d'
|
@@ -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.96
|
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-06-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|