nulogy_sso 2.5.0 → 2.5.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: aa5aea3ea95e75844f94fc702a9cac1096135c9896460f0acac40c2b736d2442
4
- data.tar.gz: 936d70656621ecc40e47e8f0f70347753d9662a04584482e68c6ab53db55d383
3
+ metadata.gz: e2f00fe467c661a11d0ae79fd7fba8f5124a45ba1be4da6afe6b48f992c496e8
4
+ data.tar.gz: f38dcc7871b34b9142681f6496f89a25b12370a506a190aba1271027cfc7b9fa
5
5
  SHA512:
6
- metadata.gz: 8aed5b7156f238dc974af4c7e3dfa34e08fe2f60e650aec4f072ae1a227f14b05b1c13b674ad7e6a686572804095df8a51545b651991d5b8e5ccc3f3a97260a8
7
- data.tar.gz: 7647f9d1944d5cedf9eb6d79e503c8ee1a3f873d9bcaa507d6fe27c54ee032bcc1fcb6c380c75a517dc4bb477cecf2f8830d214f7610e24a415f0dad8060dc23
6
+ metadata.gz: 06fde7f4ea33d9675eff0eb3789c9c427c9112cb650c0f067f5789c5af561fddac3539f1bce6f1d2d5e7cbdf6b446df92c9790449b4cff767491f5dd342a1c7b
7
+ data.tar.gz: 427853e289f0bdd9698a1341fd0695b0d178fc8e1cc7ed7cefa901d87dc046e7ec9155a796de04b5a3554e1daf428685c3d493385bfcb8807317abc05ac93498
@@ -21,7 +21,7 @@ module NulogySSO
21
21
  authenticator.validate_token(
22
22
  raw_access_token,
23
23
  on_success: method(:on_authentication_success),
24
- on_invalid_token: ->(_e) { redirect_to auth0_authorize_path }
24
+ on_invalid_token: ->(_e) { redirect_to auth0_authorize_path, allow_other_host: true }
25
25
  )
26
26
  end
27
27
 
@@ -47,7 +47,7 @@ module NulogySSO
47
47
  returnTo: sso_config.redirect_uri, # Yes, this must be camelCased
48
48
  client_id: sso_config.client_id
49
49
  }
50
- redirect_to "#{sso_config.base_uri}/v2/logout?#{query_params.to_query}"
50
+ redirect_to "#{sso_config.base_uri}/v2/logout?#{query_params.to_query}", allow_other_host: true
51
51
  end
52
52
 
53
53
  private
@@ -69,7 +69,7 @@ module NulogySSO
69
69
  def on_authentication_success(access_token)
70
70
  token_store.store!(access_token)
71
71
 
72
- redirect_to params["origin"].presence || sso_config.redirect_uri
72
+ redirect_to(params["origin"].presence || sso_config.redirect_uri, allow_other_host: true)
73
73
  end
74
74
 
75
75
  def fetch_token_from_auth0(code)
@@ -1,3 +1,3 @@
1
1
  module NulogySSO
2
- VERSION = "2.5.0"
2
+ VERSION = "2.5.1"
3
3
  end
data/lib/nulogy_sso.rb CHANGED
@@ -6,7 +6,7 @@ module NulogySSO
6
6
  # Config variables for the engine
7
7
  mattr_accessor :sso_config, :find_user_by_email, :handle_sso_error
8
8
  mattr_accessor :handle_unauthenticated_request, default: lambda { |controller|
9
- controller.redirect_to NulogySSO::Engine.routes.url_helpers.login_path
9
+ controller.redirect_to NulogySSO::Engine.routes.url_helpers.login_path, allow_other_host: true
10
10
  }
11
11
 
12
12
  # Public Constants
Binary file