oauth_im 0.17.0 → 0.17.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fbda5af64e04bdb4b5c032fab65ff0e8a14b5d22a9a3d48e0491b72a763d0233
4
- data.tar.gz: 257b2bfb008610eb31146d133e123ed507adfc7c3f9eb460609963bcbcac3df5
3
+ metadata.gz: ff789190fafbfbe431b8fbdb07e8e3c672d77fc8f9cae42fe55cf9a82241ef8e
4
+ data.tar.gz: 2239444d08e63a8f3172cd0f0f7ee4c60bea915055ee9bb941b93714afc9a44f
5
5
  SHA512:
6
- metadata.gz: b38217b2991044a1c61afd4b82531320b9b1e6d8626693605f08a46aacbaf9865569858b6941ae13bffac71366b11272e6332f37475294e58c277354e331ea87
7
- data.tar.gz: db2aa25cd517977bd9d246febcff7d95d14f5d19cf2bdbc1da959a7a21116b5fb56c00f98650ddd943cde748835c78c985368c0d13ffdcefc75c4caf91df9b68
6
+ metadata.gz: 195fd770c4ae7b1ea04fde55ee146c81ad1120f4469a8177bc50ad46933bb4e3a4118122b23b037f62360bd64bd1a10b20794946509ce7d9e000032bb0d14e25
7
+ data.tar.gz: eb62f8ab9c8223419df2a3c3dc30e0adb928bef2b20db7444d75388e4ca4c4a472c3c5dd52d98d811f511d5eccfb171bcbb43a3c6c89c069134c201fa27d5fc9
@@ -7,14 +7,12 @@ module OauthIm
7
7
  delegate :configuration, to: OauthIm
8
8
  delegate :oauth_rescue_redirect_path, to: :configuration
9
9
 
10
+ # Rescue from all StandardError exceptions
11
+ rescue_from StandardError, with: :handle_exception
12
+
10
13
  def callback
11
14
  session[:user_jwt] = user_jwt
12
15
  callback_redirect
13
- rescue StandardError => e
14
- Sentry.capture_message(
15
- "rescue OauthIm::ClientController#callback: #{request.original_url} #{e.message}",
16
- level: :warning
17
- )
18
16
  end
19
17
 
20
18
  def callback_redirect
@@ -65,5 +63,14 @@ module OauthIm
65
63
  def local_login_userinfo
66
64
  { info: { email: 'local_login@example.com' } }.freeze
67
65
  end
66
+
67
+ def handle_exception(exception)
68
+ Sentry.capture_exception(exception, extra: { url: request.original_url })
69
+ Sentry.capture_message(
70
+ "Exception in OauthIm::ClientController: #{request.original_url} #{exception.message}",
71
+ level: :error
72
+ )
73
+ redirect_to oauth_rescue_redirect_path, alert: 'An error occurred. Please try again later.'
74
+ end
68
75
  end
69
76
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module OauthIm
4
- VERSION = '0.17.0'
4
+ VERSION = '0.17.1'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oauth_im
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.17.0
4
+ version: 0.17.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Connally
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-08-27 00:00:00.000000000 Z
11
+ date: 2025-08-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fusionauth_client