oauth_im 0.12.1 → 0.12.2
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 +5 -0
- data/lib/oauth_im/configuration.rb +1 -0
- data/lib/oauth_im/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 364497681f86814ce9f653bb9bfbce1e205f290fefb89efd57909fd0abf8b9a4
|
|
4
|
+
data.tar.gz: 7186e2c813011b1687d2a03e54ea3a7a2582a5cd4291896772b36171cecae16d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: abc834522d265fa3d6257125a5ee18b75a2101e49b2702b493b94bcf8b97ad0ba7d763d4adaa9f71379bbc310939c18fcaba7059994e6c3aac4aa3d052a2878b
|
|
7
|
+
data.tar.gz: 04ad73bded20cbc1efdeb1fdc1c1e6b1482b06ae7ee8482b89698b858933a2d3dfb25047065033a5029103c5728292cdd489f621641f4eab77decb640c475c3d
|
|
@@ -4,9 +4,14 @@ require 'oauth2'
|
|
|
4
4
|
|
|
5
5
|
module OauthIm
|
|
6
6
|
class ClientController < OauthIm::ApplicationController
|
|
7
|
+
delegate :oauth_rescue_redirect_path, to: :configuration
|
|
8
|
+
|
|
7
9
|
def callback
|
|
8
10
|
session[:user_jwt] = user_jwt
|
|
9
11
|
redirect_to main_app.root_path
|
|
12
|
+
rescue StandardError => e
|
|
13
|
+
Rollbar.warning "rescue OauthIm::ClientController#callback: #{request.original_url} #{e.message}"
|
|
14
|
+
redirect_to oauth_rescue_redirect_path
|
|
10
15
|
end
|
|
11
16
|
|
|
12
17
|
def login
|
data/lib/oauth_im/version.rb
CHANGED