nulogy_sso 2.4.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: 74e239b1c685ec0b9fc96d1d56575e4a1fb9b699e4745a4f532230791be36607
4
- data.tar.gz: 629ac3914d88f3ab4ae01c7bad14ce6241fc1e9274b20ba070a1a0edee247d2c
3
+ metadata.gz: e2f00fe467c661a11d0ae79fd7fba8f5124a45ba1be4da6afe6b48f992c496e8
4
+ data.tar.gz: f38dcc7871b34b9142681f6496f89a25b12370a506a190aba1271027cfc7b9fa
5
5
  SHA512:
6
- metadata.gz: 7e8cccb0d3ef757470e78453648b820ec292f9da3b46c9fb16179dd904aa8a669887dceb01371459c2993dcacebb8e294a19e3a5093e0e947d807c45be40d056
7
- data.tar.gz: 6f770201a5c6847a1fd52967fb33b988745b3b5984ce19e4c01e5b0bfd19824429e3024beda0d1f403cbaae6bd9ec97b9e88ff19f151c10774692a41a9881dc8
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.4.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