oauth_im 0.15.10 → 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: 882246e4f8fc70d1df118737c14880133b9fe4c6300b987b64397ddc8039d2e8
4
- data.tar.gz: b8f7a11822ffc8c832fd08c7c53bf446030f54d3b67b506e4d97920832f12d71
3
+ metadata.gz: ff789190fafbfbe431b8fbdb07e8e3c672d77fc8f9cae42fe55cf9a82241ef8e
4
+ data.tar.gz: 2239444d08e63a8f3172cd0f0f7ee4c60bea915055ee9bb941b93714afc9a44f
5
5
  SHA512:
6
- metadata.gz: 71cb91ebd18baeb80a35745a83e8cfb1a55a7b8469fe9d48bc0d28294af022ea5147c5ae1b84953e858a36a30612ff91d7940a6bf12de8b820b3cddc57265777
7
- data.tar.gz: 98003732a064780391e7e7f8345d9652b9185dac7724a80abb4e29c7dd732f345a84db22431c14526633b838b905d1cf3f1870499c089b7ebdd3ec279dcb3105
6
+ metadata.gz: 195fd770c4ae7b1ea04fde55ee146c81ad1120f4469a8177bc50ad46933bb4e3a4118122b23b037f62360bd64bd1a10b20794946509ce7d9e000032bb0d14e25
7
+ data.tar.gz: eb62f8ab9c8223419df2a3c3dc30e0adb928bef2b20db7444d75388e4ca4c4a472c3c5dd52d98d811f511d5eccfb171bcbb43a3c6c89c069134c201fa27d5fc9
@@ -7,12 +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
- Rollbar.warning "rescue OauthIm::ClientController#callback: #{request.original_url} #{e.message}"
15
- redirect_to oauth_rescue_redirect_path
16
16
  end
17
17
 
18
18
  def callback_redirect
@@ -63,5 +63,14 @@ module OauthIm
63
63
  def local_login_userinfo
64
64
  { info: { email: 'local_login@example.com' } }.freeze
65
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
66
75
  end
67
76
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module OauthIm
4
- VERSION = '0.15.10'
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.15.10
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-04-09 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
@@ -67,19 +67,33 @@ dependencies:
67
67
  - !ruby/object:Gem::Version
68
68
  version: 5.pre.2.pre.stable
69
69
  - !ruby/object:Gem::Dependency
70
- name: rollbar
70
+ name: sentry-rails
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - ">="
74
74
  - !ruby/object:Gem::Version
75
- version: 3.0.0
75
+ version: '0'
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - ">="
81
81
  - !ruby/object:Gem::Version
82
- version: 3.0.0
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: sentry-ruby
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :runtime
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
83
97
  - !ruby/object:Gem::Dependency
84
98
  name: rspec-rails
85
99
  requirement: !ruby/object:Gem::Requirement