phcdevworks_accounts_auth0 0.11.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: b128afc84434f1de090ca21858a1a791acb8edeedf8bcb227cefcbe3fe9ae6be
4
- data.tar.gz: 7bdef29da14f91677044cd41c4dfa7e325b91b3ab3c3f9e693bdee455eea698e
3
+ metadata.gz: 9e1905a12111150b10de4df4de712228007101c162d6fbddc6dee534596ded1e
4
+ data.tar.gz: a968089e513a8ee56f7f61a29389e2207ffadc58073f2a865dfb395ce0a597ae
5
5
  SHA512:
6
- metadata.gz: 46aea8fac1cdda312446bd172e4340b1531aa3ce54c6a9ec8b72dff917ce35cafbbe995a9089f66f1a3ed8f05413c780f2a8036e5a0179a6b9fcae86792319c0
7
- data.tar.gz: df182def527d84fe59791de5dfaba450f8438afc9097b4384f424906ce0f5427edda93cb48d41514159c2c87cdd3bef14e5c392aeae0666e6fc621c49b488959
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
@@ -22,8 +22,8 @@ module PhcdevworksAccountsAuth0
22
22
 
23
23
  def logout_url
24
24
  request_params = {
25
- returnTo: auth_logged_out_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
@@ -1,3 +1,3 @@
1
1
  module PhcdevworksAccountsAuth0
2
- VERSION = "0.11.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.11.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.
@@ -377,9 +391,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
377
391
  version: '0'
378
392
  required_rubygems_version: !ruby/object:Gem::Requirement
379
393
  requirements:
380
- - - ">="
394
+ - - ">"
381
395
  - !ruby/object:Gem::Version
382
- version: '0'
396
+ version: 1.3.1
383
397
  requirements: []
384
398
  rubygems_version: 3.0.3.1
385
399
  signing_key: