strongmind-auth 1.1.89 → 1.1.96
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:
|
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
|
@@ -12,7 +12,7 @@ module StrongMindNav
|
|
12
12
|
@bottom_navbar_html = navbar[:bottom_navbar_html]
|
13
13
|
@theme_css = navbar[:theme_css]
|
14
14
|
rescue Strongmind::Exceptions::TokenNotFoundError, Strongmind::Exceptions::UserNotFoundError, Strongmind::Exceptions::RefreshTokenExpiredError => e
|
15
|
-
Sentry.capture_exception(e)
|
15
|
+
Sentry.capture_exception(e) unless e.is_a? Strongmind::Exceptions::RefreshTokenExpiredError
|
16
16
|
Rails.logger.error(e)
|
17
17
|
flash[:alert] = e.inspect if Rails.env.development? || Rails.env.test?
|
18
18
|
@stop_redirect = true if Rails.env.development? || Rails.env.test?
|
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
|