phcdevworks_accounts_auth0 0.10.0 → 1.0.0b

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: 9e1905a12111150b10de4df4de712228007101c162d6fbddc6dee534596ded1e
4
+ data.tar.gz: a968089e513a8ee56f7f61a29389e2207ffadc58073f2a865dfb395ce0a597ae
5
5
  SHA512:
6
- metadata.gz: 283b9f5e73c8cba33500f0f17d9ae80dc93fab8b77b75d4fadd8a8c77c63094ad921fc0044cd56ddd3dc797dafd29953af13ad767145147c95ea280f4c43b066
7
- data.tar.gz: 6dcc1f8921984e28374f8f4c6fed2b7936a03249f5d1c1296582114d2778e27c36b4faf07ba7806b5597b1e6ab54456e7fd8f1636e0d0d8adedb58e42174b45b
6
+ metadata.gz: 04fd46401a3dcc82527a18c04d18d94ca71590492626c43b1ac9035bcf37405abc9b657d4f941f850dddfca5635e74f8ce6828efc6516ace570322c45ff5ccbe
7
+ data.tar.gz: 427534e7a1c61617f97d8c4d652254c8d4f4473589a0f0fe109eb189bf3345f6d606b2d51d232f148d5b19b0c1ace440da1860544f467c8228e04ef876ce254b
@@ -7,7 +7,7 @@ module Secured
7
7
  end
8
8
 
9
9
  def logged_in_using_omniauth?
10
- redirect_to '/' unless session[:userinfo].present?
10
+ redirect_to main_app.root_path unless session[:userinfo].present?
11
11
  end
12
12
 
13
13
  end
@@ -4,7 +4,7 @@ module PhcdevworksAccountsAuth0
4
4
  def callback
5
5
  auth_info = request.env["omniauth.auth"]
6
6
  session[:userinfo] = auth_info["extra"]["raw_info"]
7
- redirect_to "/"
7
+ redirect_to main_app.root_path
8
8
  end
9
9
 
10
10
  def failure
@@ -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,8 +22,8 @@ module PhcdevworksAccountsAuth0
22
22
 
23
23
  def logout_url
24
24
  request_params = {
25
- returnTo: main_app.root_path,
26
- client_id: AUTH0_CONFIG["auth0_client_id"]
25
+ returnTo: main_app.root_url,
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
29
29
  end
@@ -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 = "1.0.0b"
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: 1.0.0b
5
5
  platform: ruby
6
6
  authors:
7
7
  - PHCDevworks
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2022-09-11 00:00:00.000000000 Z
12
+ date: 2022-09-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -319,6 +319,20 @@ dependencies:
319
319
  - - "~>"
320
320
  - !ruby/object:Gem::Version
321
321
  version: '1.4'
322
+ - !ruby/object:Gem::Dependency
323
+ name: dotenv-rails
324
+ requirement: !ruby/object:Gem::Requirement
325
+ requirements:
326
+ - - "~>"
327
+ - !ruby/object:Gem::Version
328
+ version: '2.8'
329
+ type: :development
330
+ prerelease: false
331
+ version_requirements: !ruby/object:Gem::Requirement
332
+ requirements:
333
+ - - "~>"
334
+ - !ruby/object:Gem::Version
335
+ version: '2.8'
322
336
  description: Ruby on Rails 7 Authentication and User Management Engine using Auth0
323
337
  with a nice-looking dashboard, admin panel and login views to get you going fast
324
338
  on your next project.
@@ -349,6 +363,7 @@ files:
349
363
  - app/views/phcdevworks_accounts_auth0/admin/pages/user_profile.html.erb
350
364
  - app/views/phcdevworks_accounts_auth0/admin/pages/users_list.html.erb
351
365
  - app/views/phcdevworks_accounts_auth0/auth/handler/failure.html.erb
366
+ - app/views/phcdevworks_accounts_auth0/auth/handler/logged_out.html.erb
352
367
  - app/views/phcdevworks_accounts_auth0/user/pages/dashboard.html.erb
353
368
  - app/views/phcdevworks_accounts_auth0/user/pages/profile.html.erb
354
369
  - config/initializers/auth0.rb
@@ -376,9 +391,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
376
391
  version: '0'
377
392
  required_rubygems_version: !ruby/object:Gem::Requirement
378
393
  requirements:
379
- - - ">="
394
+ - - ">"
380
395
  - !ruby/object:Gem::Version
381
- version: '0'
396
+ version: 1.3.1
382
397
  requirements: []
383
398
  rubygems_version: 3.0.3.1
384
399
  signing_key: