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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d76c8274bed6bd0f1186d0f91c3f19d1f4c9c3f33fb76f42aabef39aa8e69abc
4
- data.tar.gz: 7aa343de7cd28ba873083f234c8af2129673bf1f362fcbedc48749ed637f8e26
3
+ metadata.gz: 364497681f86814ce9f653bb9bfbce1e205f290fefb89efd57909fd0abf8b9a4
4
+ data.tar.gz: 7186e2c813011b1687d2a03e54ea3a7a2582a5cd4291896772b36171cecae16d
5
5
  SHA512:
6
- metadata.gz: 16ef3dc4382aef3277073f88ad5acacbff0cb036c7dcf971d207b03bc29ef2e3e455a73c90e954426c1b81e5117c6cbeb30af28f7ca12db84045e3271282ae23
7
- data.tar.gz: 5e270df61e8e55069d2c788347e26492c359ed0fcbc3dcc38707e5bd60098e6e2ce8ef95e184e5d5167828a601f46bbaa03917b461068c7130c6f261bfa97f43
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
@@ -17,6 +17,7 @@ module OauthIm
17
17
  client_secret
18
18
  hmac
19
19
  rsa_public
20
+ oauth_rescue_redirect_path
20
21
  ].freeze
21
22
 
22
23
  class Configuration
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module OauthIm
4
- VERSION = '0.12.1'
4
+ VERSION = '0.12.2'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oauth_im
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.1
4
+ version: 0.12.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Connally