phcdevworks_accounts_auth0 1.0.1b → 1.1.0b

Sign up to get free protection for your applications and to get access to all the features.
Files changed (25) hide show
  1. checksums.yaml +4 -4
  2. data/MIT-LICENSE +1 -1
  3. data/README.md +2 -2
  4. data/app/assets/config/phcdevworks_accounts_auth0_manifest.js +1 -2
  5. data/app/assets/stylesheets/phcdevworks_accounts_auth0/application.css +15 -0
  6. data/app/controllers/phcdevworks_accounts_auth0/application_controller.rb +2 -13
  7. data/app/controllers/phcdevworks_accounts_auth0/auth/handler_controller.rb +26 -26
  8. data/app/controllers/phcdevworks_accounts_auth0/user/pages_controller.rb +9 -7
  9. data/app/helpers/phcdevworks_accounts_auth0/user/pages_helper.rb +4 -0
  10. data/app/views/layouts/phcdevworks_accounts_auth0/application.html.erb +9 -67
  11. data/app/views/phcdevworks_accounts_auth0/auth/handler/logged_out.html.erb +1 -0
  12. data/app/views/phcdevworks_accounts_auth0/user/pages/profile.html.erb +0 -4
  13. data/config/routes.rb +2 -2
  14. data/lib/phcdevworks_accounts_auth0/engine.rb +1 -40
  15. data/lib/phcdevworks_accounts_auth0/version.rb +1 -1
  16. metadata +22 -237
  17. data/app/controllers/concerns/secured.rb +0 -13
  18. data/app/views/layouts/phcdevworks_accounts_auth0/components/backend/footer/_footer.html.erb +0 -17
  19. data/app/views/layouts/phcdevworks_accounts_auth0/components/backend/navigation/_top_menu.html.erb +0 -36
  20. data/app/views/layouts/phcdevworks_accounts_auth0/components/backend/sidebars/_side_menu.html.erb +0 -934
  21. data/app/views/phcdevworks_accounts_auth0/admin/pages/components/_profile_header.html.erb +0 -27
  22. data/app/views/phcdevworks_accounts_auth0/admin/pages/dashboard.html.erb +0 -0
  23. data/app/views/phcdevworks_accounts_auth0/admin/pages/user_profile.html.erb +0 -22
  24. data/app/views/phcdevworks_accounts_auth0/admin/pages/users_list.html.erb +0 -64
  25. data/config/initializers/auth0.rb +0 -14
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 73cda9331fe4e91cf9aa025b51957ebba83484f7568c125ebebb6f325a4ed308
4
- data.tar.gz: 6feb399ac3112cc6b30ceb240f7362521cf063d54a028ca974c93abbd5a036bf
3
+ metadata.gz: 69a9616dadeb8c94a4057cc67028f5d27801765179b609b8163bec25cb2ff9ec
4
+ data.tar.gz: c2c3c0b4e5784977f3c9f25d6130ed39cf685b6301d86e25e67ac43532f1662a
5
5
  SHA512:
6
- metadata.gz: ddbcc967e0bcdc3fa742aee15d62caf6775eb2d7d6d96c5cf7279df7a23c58e59dac659eaf22956defb9711bae092866b78ed0cccf3e2a43c4a3a21333f7988f
7
- data.tar.gz: 1080967a87df6763d7eec9227349e3627bcffcdace42bbc8654a0f6e5bb9099c39e45bf3f4efd47dc2718b343fe67a2a45c7f37a186e5cb729e45a39d2a89f84
6
+ metadata.gz: e3c807bcda05129ab1372b02118982eb0a4e080a12a25937bfed44ebbdbb472fd862325fb638e0afaf6c0e13d8f8103d160e61b808af76e777d2623d76f758a6
7
+ data.tar.gz: ca5bd864f19b0fa97e7026f68c28769c6f1a5d4822dde02a9ee8297b7d7e3abcef655009e16e4d9c3f2f5579531ccdee0f629ae0966b0de406b8bfffa4409b56
data/MIT-LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright 2022 Brad Potts
1
+ Copyright 2023
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
data/README.md CHANGED
@@ -1,3 +1,3 @@
1
- # PHCDevworks - Auth0
1
+ # PHCDevworks - Accounts - Auth0
2
2
 
3
- Rails 7 engine for easy user account management with Auth0 authentication. Secure, scalable, and customizable. Build better apps faster.
3
+ PHCDevworks' Rails 7 engine simplifies user account management with secure and scalable Auth0 authentication. Customize and build better apps faster with our easy-to-use engine. Streamline your app development process and enhance security with PHCDevworks Opensource.
@@ -1,2 +1 @@
1
- //= link coloradmin/default/phcthemes_admin_panel_pack_coloradmin.css
2
- //= link coloradmin/phcthemes_admin_panel_pack_coloradmin.js
1
+ //= link_directory ../stylesheets/phcdevworks_accounts_auth0 .css
@@ -0,0 +1,15 @@
1
+ /*
2
+ * This is a manifest file that'll be compiled into application.css, which will include all the files
3
+ * listed below.
4
+ *
5
+ * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
6
+ * or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path.
7
+ *
8
+ * You're free to add application-wide styles to this file and they'll appear at the bottom of the
9
+ * compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS
10
+ * files in this directory. Styles in this file should be added after the last require_* statement.
11
+ * It is generally better to create a new file per style scope.
12
+ *
13
+ *= require_tree .
14
+ *= require_self
15
+ */
@@ -1,15 +1,4 @@
1
1
  module PhcdevworksAccountsAuth0
2
- class ApplicationController < ActionController::Base
3
-
4
- # Security Filters
5
- protect_from_forgery with: :exception
6
-
7
- # Load Requried Helper Files
8
- helper PhcdevworksActiveMenus::Engine.helpers
9
- helper PhcdevworksNotifications::Engine.helpers
10
- helper PhcdevworksTitleseo::Engine.helpers
11
-
12
- private
13
-
14
- end
2
+ class ApplicationController < ActionController::Base
3
+ end
15
4
  end
@@ -1,36 +1,36 @@
1
1
  module PhcdevworksAccountsAuth0
2
- class Auth::HandlerController < ApplicationController
2
+ class Auth::HandlerController < ApplicationController
3
3
 
4
- def callback
5
- auth_info = request.env["omniauth.auth"]
6
- session[:userinfo] = auth_info["extra"]["raw_info"]
7
- redirect_to main_app.root_path
8
- end
4
+ def callback
5
+ auth_info = request.env["omniauth.auth"]
6
+ session[:userinfo] = auth_info["extra"]["raw_info"]
7
+ redirect_to main_app.root_path
8
+ end
9
9
 
10
- def failure
11
- @error_msg = request.params["message"]
12
- end
10
+ def failure
11
+ @error_msg = request.params["message"]
12
+ end
13
13
 
14
- def logout
15
- reset_session
16
- redirect_to logout_url, allow_other_host: true
17
- end
14
+ def logout
15
+ reset_session
16
+ redirect_to logout_url, allow_other_host: true
17
+ end
18
18
 
19
- private
19
+ private
20
20
 
21
- AUTH0_CONFIG = Rails.application.config_for(:auth0)
21
+ AUTH0_CONFIG = Rails.application.config_for(:auth0)
22
22
 
23
- def logout_url
24
- request_params = {
25
- returnTo: main_app.root_url,
26
- client_id: AUTH0_CONFIG['auth0_client_id']
27
- }
28
- URI::HTTPS.build(host: AUTH0_CONFIG["auth0_domain"], path: "/v2/logout", query: to_query(request_params)).to_s
29
- end
23
+ def logout_url
24
+ request_params = {
25
+ returnTo: main_app.root_url,
26
+ client_id: AUTH0_CONFIG['auth0_client_id']
27
+ }
28
+ URI::HTTPS.build(host: AUTH0_CONFIG["auth0_domain"], path: "/v2/logout", query: to_query(request_params)).to_s
29
+ end
30
30
 
31
- def to_query(hash)
32
- hash.map { |k, v| "#{k}=#{CGI.escape(v)}" unless v.nil? }.reject(&:nil?).join("&")
33
- end
31
+ def to_query(hash)
32
+ hash.map { |k, v| "#{k}=#{CGI.escape(v)}" unless v.nil? }.reject(&:nil?).join("&")
33
+ end
34
34
 
35
- end
35
+ end
36
36
  end
@@ -1,12 +1,14 @@
1
1
  module PhcdevworksAccountsAuth0
2
- class User::PagesController < ApplicationController
2
+ class User::PagesController < ApplicationController
3
3
 
4
- def dashboard
5
- end
4
+ # User - Dashboard
5
+ def dashboard
6
+ end
6
7
 
7
- def profile
8
- @user = session[:userinfo]
9
- end
8
+ # User - Profile
9
+ def profile
10
+ @user = session[:userinfo]
11
+ end
10
12
 
11
- end
13
+ end
12
14
  end
@@ -0,0 +1,4 @@
1
+ module PhcdevworksAccountsAuth0
2
+ module User::PagesHelper
3
+ end
4
+ end
@@ -1,73 +1,15 @@
1
1
  <!DOCTYPE html>
2
2
  <html>
3
- <head>
3
+ <head>
4
+ <title>Phcdevworks accounts auth0</title>
5
+ <%= csrf_meta_tags %>
6
+ <%= csp_meta_tag %>
4
7
 
5
- <!-- SEO System -->
6
- <% phc_seo_title "PHCDevworks Accounts" %>
7
- <% phc_seo_description "Ruby on Rails 7 Authentication and User Management Engine." %>
8
- <!-- SEO System -->
8
+ <%= stylesheet_link_tag "phcdevworks_accounts_auth0/application", media: "all" %>
9
+ </head>
10
+ <body>
9
11
 
10
- <!-- SEO and Site Description -->
11
- <meta charset="utf-8">
12
- <title><%= yield(:phc_seo_title) %></title>
13
- <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport" />
14
- <meta name="description" content="<%= yield(:phc_seo_description) %>">
15
- <!-- SEO and Site Description -->
12
+ <%= yield %>
16
13
 
17
- <!-- Rails Security Tags -->
18
- <%= csrf_meta_tags %>
19
- <%= csp_meta_tag %>
20
- <!-- Rails Security Tags -->
21
-
22
- <!-- CSS Styles -->
23
- <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet" />
24
- <%= stylesheet_link_tag "coloradmin/default/phcthemes_admin_panel_pack_coloradmin", media: "all" %>
25
- <!-- CSS Styles -->
26
-
27
- </head>
28
- <body>
29
-
30
- <!-- -PHCDEV- Page Container -->
31
- <div id="app" class="app app-header-fixed app-sidebar-fixed app-with-wide-sidebar">
32
-
33
- <!-- -PHCDEV- Page Container - Header -->
34
- <div id="header" class="app-header">
35
- <%= render "layouts/phcdevworks_accounts_auth0/components/backend/navigation/top_menu" %>
36
- </div>
37
- <!-- -PHCDEV- Page Container - Header -->
38
-
39
- <!-- -PHCDEV- Page Container - Sidebar -->
40
- <div id="sidebar" class="app-sidebar" data-disable-slide-animation="true">
41
- <%= render "layouts/phcdevworks_accounts_auth0/components/backend/sidebars/side_menu" %>
42
- </div>
43
- <div class="app-sidebar-bg"></div>
44
- <div class="app-sidebar-mobile-backdrop"><a href="#" data-dismiss="app-sidebar-mobile" class="stretched-link"></a></div>
45
- <!-- -PHCDEV- Page Container - Sidebar -->
46
-
47
- <!-- -PHCDEV- Page Container - Content -->
48
- <div id="app" class="app app-content-full-height">
49
- <div id="content" class="app-content d-flex flex-column p-0">
50
- <!-- -PHCDEV- Page Container - Main -->
51
- <div class="app-content-padding flex-grow-1 overflow-hidden" data-scrollbar="true" data-height="100%">
52
- <%= render "phcdevworks_notifications/bootstrap/notifications" %>
53
- <%= yield %>
54
- </div>
55
- <!-- -PHCDEV- Page Container - Main -->
56
- <!-- -PHCDEV- Page Container - Footer -->
57
- <div id="footer" class="app-footer m-0">
58
- <%= render "layouts/phcdevworks_accounts_auth0/components/backend/footer/footer" %>
59
- </div>
60
- <!-- -PHCDEV- Page Container - Footer -->
61
- </div>
62
- </div>
63
- <!-- -PHCDEV- Page Container - Content -->
64
-
65
- </div>
66
- <!-- -PHCDEV- Page Container -->
67
-
68
- <!-- JavaScript -->
69
- <%= javascript_include_tag "coloradmin/phcthemes_admin_panel_pack_coloradmin" %>
70
- <!-- JavaScript -->
71
-
72
- </body>
14
+ </body>
73
15
  </html>
@@ -0,0 +1 @@
1
+ <h1>You Are Logged Out</h1>
@@ -1,4 +0,0 @@
1
- <div>
2
- <p>Normalized User Profile:<%= JSON.pretty_generate(@user[:info])%></p>
3
- <p>Full User Profile:<%= JSON.pretty_generate(@user[:extra][:raw_info])%></p>
4
- </div>
data/config/routes.rb CHANGED
@@ -1,10 +1,10 @@
1
1
  PhcdevworksAccountsAuth0::Engine.routes.draw do
2
2
 
3
- # User Dashboard
3
+ # PHCDEVONE - User Routes
4
4
  get "user/dashboard" => 'user/pages#dashboard'
5
5
  get "user/profile" => 'user/pages#profile'
6
6
 
7
- # Auth Routes
7
+ # PHCDEVONE - Auth Routes
8
8
  get "/auth/callback" => "auth/handler#callback"
9
9
  get "/auth/failure" => "auth/handler#failure"
10
10
  get "/auth/logout" => "auth/handler#logout"
@@ -1,44 +1,5 @@
1
1
  module PhcdevworksAccountsAuth0
2
2
  class Engine < ::Rails::Engine
3
-
4
- # Load Main Dependencies
5
- require "jbuilder"
6
- require "paper_trail"
7
- require "friendly_id"
8
-
9
- # Load Theme Dependencies
10
- require "phcthemes_admin_panel_pack"
11
- require "phcthemes_web_theme_pack"
12
-
13
- # Load Helper Dependencies
14
- require "phcdevworks_core"
15
- require "phcdevworks_active_menus"
16
- require "phcdevworks_notifications"
17
- require "phcdevworks_titleseo"
18
-
19
- # Load Upload Dependencies
20
- require "aws-sdk-s3"
21
- require "google-cloud-storage"
22
- require "mini_magick"
23
-
24
- # Frontend Dependencies
25
- require "friendly_id"
26
-
27
- # Mailer Dependencies
28
- require "mail_form"
29
-
30
- # Security & Payment Dependencies
31
- require "omniauth-auth0"
32
-
33
- # Engine Namespace
34
3
  isolate_namespace PhcdevworksAccountsAuth0
35
-
36
- # Rspec Generators
37
- config.generators do |g|
38
- g.test_framework :rspec
39
- g.fixture_replacement :factory_bot
40
- g.factory_bot dir: 'spec/factories'
41
- end
42
-
43
4
  end
44
- end
5
+ end
@@ -1,3 +1,3 @@
1
1
  module PhcdevworksAccountsAuth0
2
- VERSION = "1.0.1b"
2
+ VERSION = "1.1.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: 1.0.1b
4
+ version: 1.1.0b
5
5
  platform: ruby
6
6
  authors:
7
7
  - PHCDevworks
@@ -9,78 +9,50 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2023-02-27 00:00:00.000000000 Z
12
+ date: 2023-02-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  requirements:
18
- - - "~>"
18
+ - - ">="
19
19
  - !ruby/object:Gem::Version
20
- version: '7.0'
20
+ version: 7.0.4.2
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
- - - "~>"
25
+ - - ">="
26
26
  - !ruby/object:Gem::Version
27
- version: '7.0'
27
+ version: 7.0.4.2
28
28
  - !ruby/object:Gem::Dependency
29
- name: jbuilder
30
- requirement: !ruby/object:Gem::Requirement
31
- requirements:
32
- - - "~>"
33
- - !ruby/object:Gem::Version
34
- version: '2.11'
35
- type: :runtime
36
- prerelease: false
37
- version_requirements: !ruby/object:Gem::Requirement
38
- requirements:
39
- - - "~>"
40
- - !ruby/object:Gem::Version
41
- version: '2.11'
42
- - !ruby/object:Gem::Dependency
43
- name: paper_trail
44
- requirement: !ruby/object:Gem::Requirement
45
- requirements:
46
- - - "~>"
47
- - !ruby/object:Gem::Version
48
- version: '12.3'
49
- type: :runtime
50
- prerelease: false
51
- version_requirements: !ruby/object:Gem::Requirement
52
- requirements:
53
- - - "~>"
54
- - !ruby/object:Gem::Version
55
- version: '12.3'
56
- - !ruby/object:Gem::Dependency
57
- name: phcthemes_admin_panel_pack
29
+ name: omniauth-auth0
58
30
  requirement: !ruby/object:Gem::Requirement
59
31
  requirements:
60
32
  - - "~>"
61
33
  - !ruby/object:Gem::Version
62
- version: '7.0'
34
+ version: '3.1'
63
35
  type: :runtime
64
36
  prerelease: false
65
37
  version_requirements: !ruby/object:Gem::Requirement
66
38
  requirements:
67
39
  - - "~>"
68
40
  - !ruby/object:Gem::Version
69
- version: '7.0'
41
+ version: '3.1'
70
42
  - !ruby/object:Gem::Dependency
71
- name: phcthemes_web_theme_pack
43
+ name: omniauth-rails_csrf_protection
72
44
  requirement: !ruby/object:Gem::Requirement
73
45
  requirements:
74
46
  - - "~>"
75
47
  - !ruby/object:Gem::Version
76
- version: '6.0'
48
+ version: '1.0'
77
49
  type: :runtime
78
50
  prerelease: false
79
51
  version_requirements: !ruby/object:Gem::Requirement
80
52
  requirements:
81
53
  - - "~>"
82
54
  - !ruby/object:Gem::Version
83
- version: '6.0'
55
+ version: '1.0'
84
56
  - !ruby/object:Gem::Dependency
85
57
  name: phcdevworks_active_menus
86
58
  requirement: !ruby/object:Gem::Requirement
@@ -137,190 +109,10 @@ dependencies:
137
109
  - - "~>"
138
110
  - !ruby/object:Gem::Version
139
111
  version: '5.0'
140
- - !ruby/object:Gem::Dependency
141
- name: friendly_id
142
- requirement: !ruby/object:Gem::Requirement
143
- requirements:
144
- - - "~>"
145
- - !ruby/object:Gem::Version
146
- version: '5.5'
147
- type: :runtime
148
- prerelease: false
149
- version_requirements: !ruby/object:Gem::Requirement
150
- requirements:
151
- - - "~>"
152
- - !ruby/object:Gem::Version
153
- version: '5.5'
154
- - !ruby/object:Gem::Dependency
155
- name: mail_form
156
- requirement: !ruby/object:Gem::Requirement
157
- requirements:
158
- - - "~>"
159
- - !ruby/object:Gem::Version
160
- version: '1.10'
161
- type: :runtime
162
- prerelease: false
163
- version_requirements: !ruby/object:Gem::Requirement
164
- requirements:
165
- - - "~>"
166
- - !ruby/object:Gem::Version
167
- version: '1.10'
168
- - !ruby/object:Gem::Dependency
169
- name: aws-sdk-s3
170
- requirement: !ruby/object:Gem::Requirement
171
- requirements:
172
- - - "~>"
173
- - !ruby/object:Gem::Version
174
- version: '1.119'
175
- type: :runtime
176
- prerelease: false
177
- version_requirements: !ruby/object:Gem::Requirement
178
- requirements:
179
- - - "~>"
180
- - !ruby/object:Gem::Version
181
- version: '1.119'
182
- - !ruby/object:Gem::Dependency
183
- name: google-cloud-storage
184
- requirement: !ruby/object:Gem::Requirement
185
- requirements:
186
- - - "~>"
187
- - !ruby/object:Gem::Version
188
- version: '1.44'
189
- type: :runtime
190
- prerelease: false
191
- version_requirements: !ruby/object:Gem::Requirement
192
- requirements:
193
- - - "~>"
194
- - !ruby/object:Gem::Version
195
- version: '1.44'
196
- - !ruby/object:Gem::Dependency
197
- name: mini_magick
198
- requirement: !ruby/object:Gem::Requirement
199
- requirements:
200
- - - "~>"
201
- - !ruby/object:Gem::Version
202
- version: '4.12'
203
- type: :runtime
204
- prerelease: false
205
- version_requirements: !ruby/object:Gem::Requirement
206
- requirements:
207
- - - "~>"
208
- - !ruby/object:Gem::Version
209
- version: '4.12'
210
- - !ruby/object:Gem::Dependency
211
- name: omniauth-auth0
212
- requirement: !ruby/object:Gem::Requirement
213
- requirements:
214
- - - "~>"
215
- - !ruby/object:Gem::Version
216
- version: '3.1'
217
- type: :runtime
218
- prerelease: false
219
- version_requirements: !ruby/object:Gem::Requirement
220
- requirements:
221
- - - "~>"
222
- - !ruby/object:Gem::Version
223
- version: '3.1'
224
- - !ruby/object:Gem::Dependency
225
- name: omniauth-rails_csrf_protection
226
- requirement: !ruby/object:Gem::Requirement
227
- requirements:
228
- - - "~>"
229
- - !ruby/object:Gem::Version
230
- version: '1.0'
231
- type: :runtime
232
- prerelease: false
233
- version_requirements: !ruby/object:Gem::Requirement
234
- requirements:
235
- - - "~>"
236
- - !ruby/object:Gem::Version
237
- version: '1.0'
238
- - !ruby/object:Gem::Dependency
239
- name: factory_bot_rails
240
- requirement: !ruby/object:Gem::Requirement
241
- requirements:
242
- - - "~>"
243
- - !ruby/object:Gem::Version
244
- version: '6.2'
245
- type: :development
246
- prerelease: false
247
- version_requirements: !ruby/object:Gem::Requirement
248
- requirements:
249
- - - "~>"
250
- - !ruby/object:Gem::Version
251
- version: '6.2'
252
- - !ruby/object:Gem::Dependency
253
- name: rspec-rails
254
- requirement: !ruby/object:Gem::Requirement
255
- requirements:
256
- - - "~>"
257
- - !ruby/object:Gem::Version
258
- version: '6.0'
259
- type: :development
260
- prerelease: false
261
- version_requirements: !ruby/object:Gem::Requirement
262
- requirements:
263
- - - "~>"
264
- - !ruby/object:Gem::Version
265
- version: '6.0'
266
- - !ruby/object:Gem::Dependency
267
- name: spring
268
- requirement: !ruby/object:Gem::Requirement
269
- requirements:
270
- - - "~>"
271
- - !ruby/object:Gem::Version
272
- version: '4.1'
273
- type: :development
274
- prerelease: false
275
- version_requirements: !ruby/object:Gem::Requirement
276
- requirements:
277
- - - "~>"
278
- - !ruby/object:Gem::Version
279
- version: '4.1'
280
- - !ruby/object:Gem::Dependency
281
- name: spring-commands-rspec
282
- requirement: !ruby/object:Gem::Requirement
283
- requirements:
284
- - - "~>"
285
- - !ruby/object:Gem::Version
286
- version: '1.0'
287
- type: :development
288
- prerelease: false
289
- version_requirements: !ruby/object:Gem::Requirement
290
- requirements:
291
- - - "~>"
292
- - !ruby/object:Gem::Version
293
- version: '1.0'
294
- - !ruby/object:Gem::Dependency
295
- name: sqlite3
296
- requirement: !ruby/object:Gem::Requirement
297
- requirements:
298
- - - "~>"
299
- - !ruby/object:Gem::Version
300
- version: '1.6'
301
- type: :development
302
- prerelease: false
303
- version_requirements: !ruby/object:Gem::Requirement
304
- requirements:
305
- - - "~>"
306
- - !ruby/object:Gem::Version
307
- version: '1.6'
308
- - !ruby/object:Gem::Dependency
309
- name: dotenv-rails
310
- requirement: !ruby/object:Gem::Requirement
311
- requirements:
312
- - - "~>"
313
- - !ruby/object:Gem::Version
314
- version: '2.8'
315
- type: :development
316
- prerelease: false
317
- version_requirements: !ruby/object:Gem::Requirement
318
- requirements:
319
- - - "~>"
320
- - !ruby/object:Gem::Version
321
- version: '2.8'
322
- description: Rails 7 engine for easy user account management with Auth0 authentication.
323
- Secure, scalable, and customizable. Build better apps faster.
112
+ description: PHCDevworks' Rails 7 engine simplifies user account management with secure
113
+ and scalable Auth0 authentication. Customize and build better apps faster with our
114
+ easy-to-use engine. Streamline your app development process and enhance security
115
+ with PHCDevworks Opensource.
324
116
  email:
325
117
  - imfo@phcdevworks.com
326
118
  executables: []
@@ -331,27 +123,20 @@ files:
331
123
  - README.md
332
124
  - Rakefile
333
125
  - app/assets/config/phcdevworks_accounts_auth0_manifest.js
334
- - app/controllers/concerns/secured.rb
126
+ - app/assets/stylesheets/phcdevworks_accounts_auth0/application.css
335
127
  - app/controllers/phcdevworks_accounts_auth0/application_controller.rb
336
128
  - app/controllers/phcdevworks_accounts_auth0/auth/handler_controller.rb
337
129
  - app/controllers/phcdevworks_accounts_auth0/user/pages_controller.rb
338
130
  - app/helpers/phcdevworks_accounts_auth0/application_helper.rb
131
+ - app/helpers/phcdevworks_accounts_auth0/user/pages_helper.rb
339
132
  - app/jobs/phcdevworks_accounts_auth0/application_job.rb
340
133
  - app/mailers/phcdevworks_accounts_auth0/application_mailer.rb
341
134
  - app/models/phcdevworks_accounts_auth0/application_record.rb
342
135
  - app/views/layouts/phcdevworks_accounts_auth0/application.html.erb
343
- - app/views/layouts/phcdevworks_accounts_auth0/components/backend/footer/_footer.html.erb
344
- - app/views/layouts/phcdevworks_accounts_auth0/components/backend/navigation/_top_menu.html.erb
345
- - app/views/layouts/phcdevworks_accounts_auth0/components/backend/sidebars/_side_menu.html.erb
346
- - app/views/phcdevworks_accounts_auth0/admin/pages/components/_profile_header.html.erb
347
- - app/views/phcdevworks_accounts_auth0/admin/pages/dashboard.html.erb
348
- - app/views/phcdevworks_accounts_auth0/admin/pages/user_profile.html.erb
349
- - app/views/phcdevworks_accounts_auth0/admin/pages/users_list.html.erb
350
136
  - app/views/phcdevworks_accounts_auth0/auth/handler/failure.html.erb
351
137
  - app/views/phcdevworks_accounts_auth0/auth/handler/logged_out.html.erb
352
138
  - app/views/phcdevworks_accounts_auth0/user/pages/dashboard.html.erb
353
139
  - app/views/phcdevworks_accounts_auth0/user/pages/profile.html.erb
354
- - config/initializers/auth0.rb
355
140
  - config/routes.rb
356
141
  - lib/phcdevworks_accounts_auth0.rb
357
142
  - lib/phcdevworks_accounts_auth0/engine.rb
@@ -361,10 +146,10 @@ homepage: https://phcdevworks.com/
361
146
  licenses:
362
147
  - MIT
363
148
  metadata:
364
- homepage_uri: https://phcdevworks.com/
365
- source_code_uri: https://github.com/phcdevworks/phcdevworks_accounts
366
- changelog_uri: https://github.com/phcdevworks/phcdevworks_accounts/releases
367
149
  allowed_push_host: https://rubygems.org/
150
+ homepage_uri: https://phcdevworks.com/
151
+ source_code_uri: https://github.com/phcdevworks/phcdevworks_accounts_auth0/
152
+ changelog_uri: https://github.com/phcdevworks/phcdevworks_accounts_auth0/releases/
368
153
  post_install_message:
369
154
  rdoc_options: []
370
155
  require_paths:
@@ -383,5 +168,5 @@ requirements: []
383
168
  rubygems_version: 3.4.1
384
169
  signing_key:
385
170
  specification_version: 4
386
- summary: Rails 7 - Engine - User Accounts - Auth0
171
+ summary: Rails 7 - Engine - Accounts - Auth0
387
172
  test_files: []
@@ -1,13 +0,0 @@
1
- module Secured
2
-
3
- extend ActiveSupport::Concern
4
-
5
- included do
6
- before_action :logged_in_using_omniauth?
7
- end
8
-
9
- def logged_in_using_omniauth?
10
- redirect_to main_app.root_path unless session[:userinfo].present?
11
- end
12
-
13
- end