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 +4 -4
- data/app/controllers/oauth_im/client_controller.rb +12 -5
- data/lib/oauth_im/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ff789190fafbfbe431b8fbdb07e8e3c672d77fc8f9cae42fe55cf9a82241ef8e
|
4
|
+
data.tar.gz: 2239444d08e63a8f3172cd0f0f7ee4c60bea915055ee9bb941b93714afc9a44f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/oauth_im/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2025-08-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fusionauth_client
|