nulogy_sso 2.5.0 → 2.5.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/nulogy_sso/authentication_controller.rb +3 -3
- data/lib/nulogy_sso/version.rb +1 -1
- data/lib/nulogy_sso.rb +1 -1
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/test.log +121 -1169
- data/spec/dummy/tmp/development_secret.txt +1 -1
- data/spec/examples.txt +24 -24
- metadata +18 -10
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/test.sqlite3-journal +0 -0
- data/spec/dummy/log/development.log +0 -26
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e2f00fe467c661a11d0ae79fd7fba8f5124a45ba1be4da6afe6b48f992c496e8
|
4
|
+
data.tar.gz: f38dcc7871b34b9142681f6496f89a25b12370a506a190aba1271027cfc7b9fa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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)
|
data/lib/nulogy_sso/version.rb
CHANGED
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
|
data/spec/dummy/db/test.sqlite3
CHANGED
Binary file
|