phcdevworks_accounts_auth0 0.10.0 → 0.11.0

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: 8b656ee15f92dca0a43a0ce0e921a61e31a72b2fe5e9fa094f052d0ebcdaada3
4
- data.tar.gz: 2d6b7836d297a21f3b65ab2e85e423aad3da7c80d434987ed0d3af66d98c3be0
3
+ metadata.gz: b128afc84434f1de090ca21858a1a791acb8edeedf8bcb227cefcbe3fe9ae6be
4
+ data.tar.gz: 7bdef29da14f91677044cd41c4dfa7e325b91b3ab3c3f9e693bdee455eea698e
5
5
  SHA512:
6
- metadata.gz: 283b9f5e73c8cba33500f0f17d9ae80dc93fab8b77b75d4fadd8a8c77c63094ad921fc0044cd56ddd3dc797dafd29953af13ad767145147c95ea280f4c43b066
7
- data.tar.gz: 6dcc1f8921984e28374f8f4c6fed2b7936a03249f5d1c1296582114d2778e27c36b4faf07ba7806b5597b1e6ab54456e7fd8f1636e0d0d8adedb58e42174b45b
6
+ metadata.gz: 46aea8fac1cdda312446bd172e4340b1531aa3ce54c6a9ec8b72dff917ce35cafbbe995a9089f66f1a3ed8f05413c780f2a8036e5a0179a6b9fcae86792319c0
7
+ data.tar.gz: df182def527d84fe59791de5dfaba450f8438afc9097b4384f424906ce0f5427edda93cb48d41514159c2c87cdd3bef14e5c392aeae0666e6fc621c49b488959
@@ -13,7 +13,7 @@ module PhcdevworksAccountsAuth0
13
13
 
14
14
  def logout
15
15
  reset_session
16
- redirect_to logout_url
16
+ redirect_to logout_url, allow_other_host: true
17
17
  end
18
18
 
19
19
  private
@@ -22,7 +22,7 @@ module PhcdevworksAccountsAuth0
22
22
 
23
23
  def logout_url
24
24
  request_params = {
25
- returnTo: main_app.root_path,
25
+ returnTo: auth_logged_out_path,
26
26
  client_id: AUTH0_CONFIG["auth0_client_id"]
27
27
  }
28
28
  URI::HTTPS.build(host: AUTH0_CONFIG["auth0_domain"], path: "/v2/logout", query: to_query(request_params)).to_s
@@ -0,0 +1 @@
1
+ <h1>You Are Logged Out</h1>
data/config/routes.rb CHANGED
@@ -9,5 +9,6 @@ PhcdevworksAccountsAuth0::Engine.routes.draw do
9
9
  get "/auth/failure" => "auth/handler#failure"
10
10
  get "/auth/logout" => "auth/handler#logout"
11
11
  get "/auth/redirect" => "auth/handler#redirect"
12
+ get "/auth/logged_out"
12
13
 
13
14
  end
@@ -1,3 +1,3 @@
1
1
  module PhcdevworksAccountsAuth0
2
- VERSION = "0.10.0"
2
+ VERSION = "0.11.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phcdevworks_accounts_auth0
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
4
+ version: 0.11.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - PHCDevworks
@@ -349,6 +349,7 @@ files:
349
349
  - app/views/phcdevworks_accounts_auth0/admin/pages/user_profile.html.erb
350
350
  - app/views/phcdevworks_accounts_auth0/admin/pages/users_list.html.erb
351
351
  - app/views/phcdevworks_accounts_auth0/auth/handler/failure.html.erb
352
+ - app/views/phcdevworks_accounts_auth0/auth/handler/logged_out.html.erb
352
353
  - app/views/phcdevworks_accounts_auth0/user/pages/dashboard.html.erb
353
354
  - app/views/phcdevworks_accounts_auth0/user/pages/profile.html.erb
354
355
  - config/initializers/auth0.rb