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: ffdbde2753f9bd7b46c881799fe0d11bf7b8e8609bfdffc9c0e004a1f787e1dc
4
- data.tar.gz: c412354b9a705b26a69e7c701e76787b91fdacc7c81cc35540c24af8273572af
3
+ metadata.gz: b828d05af64497829e3afeaa5ecd30032b29607d0f2c6fe40c2b7d4749e20ccf
4
+ data.tar.gz: 1b25d940887983e20cae358ccfaecd5677148c17c8a015f1a94cb03c033329cc
5
5
  SHA512:
6
- metadata.gz: 8ff38c42e5cbbd4c3ad69083344414486c0b0431f41a931c7c4176310e336cc5df80041e261d0bcefa3113dad46fd79c3b4894de6c909077414732d6fa0d3963
7
- data.tar.gz: 8061b81b9cbafa268b4ce1e0024c18511684f4abbf721c20b8c22701edd6c51738af076e58780fb515990a53db5160af0ef9ac24585ef6a365d6ed3d291df730
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
- scopes) && nonce_valid?(payload) && condition_key_valid?(payload,
13
- condition_key) && attributes_valid?(payload,
14
- attributes)
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?
@@ -1,5 +1,5 @@
1
1
  module Strongmind
2
2
  module Auth
3
- VERSION = "1.1.89"
3
+ VERSION = "1.1.96"
4
4
  end
5
5
  end
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.89
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-05-20 00:00:00.000000000 Z
11
+ date: 2024-06-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails