strongmind-auth 1.1.87 → 1.1.98

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: 68d4f820dabda4457f35f915c07b4bc6c1c8b38549cd1b69e9a14d8a6697cad7
4
- data.tar.gz: 1efa85b966114ed8e9550e145101bfcdb1a8b6823797b965caddce8838805dbf
3
+ metadata.gz: 5923cb7c2aae5f46d33ca15fcd0e5b35f7153c54a399fd83322c247274001ca7
4
+ data.tar.gz: 015dcb29507761c53b885f3cb2b6d5bab23aea4102a64cb114c0b6258fb7c8a1
5
5
  SHA512:
6
- metadata.gz: e718fffd7528f4a2c2581e5d43b179d0ea365bcea5604b2a83876740e29034282e4ab26b51425844fdbb752bab4d4a9cacb0a8cfc6208de964cb6e35486a10c1
7
- data.tar.gz: 001fc752ef39f9d961ff99eca8ea7137a58121212a77d34504cf2c0c265060fd0f886de789872726100e93d2795f58b562ca4d5ae6d978955f61fc4f5d0638ad
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
- 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
@@ -76,7 +80,7 @@ module JwtUtilities
76
80
  ENV['IDENTITY_CLIENT_SECRET'])
77
81
  begin
78
82
  if tokens.nil?
79
- tokens = auth_client.refresh_token(session_data[:refresh_token])
83
+ tokens = auth_client.new_refresh_token(session_data[:refresh_token])
80
84
  else
81
85
  auth_client.refresh_session(session: tokens)
82
86
  end
@@ -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.87"
3
+ VERSION = "1.1.98"
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.87
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-05-06 00:00:00.000000000 Z
11
+ date: 2024-07-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -86,14 +86,14 @@ dependencies:
86
86
  requirements:
87
87
  - - ">="
88
88
  - !ruby/object:Gem::Version
89
- version: 3.11.0
89
+ version: 3.19.4
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - ">="
95
95
  - !ruby/object:Gem::Version
96
- version: 3.11.0
96
+ version: 3.19.4
97
97
  description: Ruby gem for StrongMind authentication in a strongmind app
98
98
  email:
99
99
  - teambelding@strongmind.com