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.
- checksums.yaml +4 -4
- data/MIT-LICENSE +1 -1
- data/README.md +2 -2
- data/app/assets/config/phcdevworks_accounts_auth0_manifest.js +1 -2
- data/app/assets/stylesheets/phcdevworks_accounts_auth0/application.css +15 -0
- data/app/controllers/phcdevworks_accounts_auth0/application_controller.rb +2 -13
- data/app/controllers/phcdevworks_accounts_auth0/auth/handler_controller.rb +26 -26
- data/app/controllers/phcdevworks_accounts_auth0/user/pages_controller.rb +9 -7
- data/app/helpers/phcdevworks_accounts_auth0/user/pages_helper.rb +4 -0
- data/app/views/layouts/phcdevworks_accounts_auth0/application.html.erb +9 -67
- data/app/views/phcdevworks_accounts_auth0/auth/handler/logged_out.html.erb +1 -0
- data/app/views/phcdevworks_accounts_auth0/user/pages/profile.html.erb +0 -4
- data/config/routes.rb +2 -2
- data/lib/phcdevworks_accounts_auth0/engine.rb +1 -40
- data/lib/phcdevworks_accounts_auth0/version.rb +1 -1
- metadata +22 -237
- data/app/controllers/concerns/secured.rb +0 -13
- data/app/views/layouts/phcdevworks_accounts_auth0/components/backend/footer/_footer.html.erb +0 -17
- data/app/views/layouts/phcdevworks_accounts_auth0/components/backend/navigation/_top_menu.html.erb +0 -36
- data/app/views/layouts/phcdevworks_accounts_auth0/components/backend/sidebars/_side_menu.html.erb +0 -934
- data/app/views/phcdevworks_accounts_auth0/admin/pages/components/_profile_header.html.erb +0 -27
- data/app/views/phcdevworks_accounts_auth0/admin/pages/dashboard.html.erb +0 -0
- data/app/views/phcdevworks_accounts_auth0/admin/pages/user_profile.html.erb +0 -22
- data/app/views/phcdevworks_accounts_auth0/admin/pages/users_list.html.erb +0 -64
- data/config/initializers/auth0.rb +0 -14
@@ -1,27 +0,0 @@
|
|
1
|
-
<div class="profile-header">
|
2
|
-
|
3
|
-
<!-- User Profiles - Header - Cover -->
|
4
|
-
<div class="profile-header-cover"></div>
|
5
|
-
<!-- User Profiles - Header - Cover -->
|
6
|
-
|
7
|
-
<!-- User Profiles - Header - Content -->
|
8
|
-
<div class="profile-header-content">
|
9
|
-
<div class="profile-header-img">
|
10
|
-
<%= image_tag @admin_user.gravatar_url :secure => true, :filetype => :png, :size => 128 %>
|
11
|
-
</div>
|
12
|
-
<div class="profile-header-info">
|
13
|
-
<h4 class="m-t-10 m-b-5"><%= @admin_user.firstname + ' ' + @admin_user.lastname %></h4>
|
14
|
-
<p class="m-b-10"><%= @admin_user.username %></p>
|
15
|
-
<%= link_to edit_user_registration_path(@admin_user), class: "btn btn-xs btn-yellow" do %>
|
16
|
-
<i class="fad fa-user-edit"></i> Update Member Information
|
17
|
-
<% end %>
|
18
|
-
</div>
|
19
|
-
</div>
|
20
|
-
<!-- User Profiles - Header - Content -->
|
21
|
-
|
22
|
-
<!-- User Profiles - Header - Tab Bar -->
|
23
|
-
<ul class="profile-header-tab nav nav-tabs">
|
24
|
-
</ul>
|
25
|
-
<!-- User Profiles - Header - Tab Bar -->
|
26
|
-
|
27
|
-
</div>
|
File without changes
|
@@ -1,22 +0,0 @@
|
|
1
|
-
<!-- PHCTitleSEO Title Variables -->
|
2
|
-
<% phc_title "User Manager" %>
|
3
|
-
<% phc_title_tagline "Useer Profile" %>
|
4
|
-
<% phc_breadcrumb_one yield(:phc_title) %>
|
5
|
-
<% phc_breadcrumb_two yield(:phc_title_tagline) %>
|
6
|
-
<!-- PHCTitleSEO Title Variables -->
|
7
|
-
|
8
|
-
<!-- User Profiles - Header -->
|
9
|
-
<div class="profile">
|
10
|
-
<%= render 'phcdevworks_accounts_auth0/admin/pages/components/profile_header' %>
|
11
|
-
</div>
|
12
|
-
<!-- User Profiles - Header -->
|
13
|
-
|
14
|
-
<!-- User Profiles - Remove Full Page Width -->
|
15
|
-
<div class="profile-content">
|
16
|
-
<div class="tab-content p-0">
|
17
|
-
|
18
|
-
<%= render 'phcdevworks_notifications/bootstrap/notifications' %>
|
19
|
-
|
20
|
-
</div>
|
21
|
-
</div>
|
22
|
-
<!-- User Profiles - Remove Full Page Width -->
|
@@ -1,64 +0,0 @@
|
|
1
|
-
<!-- -PHCDEV- Title System -->
|
2
|
-
<% phc_title "User Manager" %>
|
3
|
-
<% phc_title_tagline "Useer Index" %>
|
4
|
-
<% phc_breadcrumb_one yield(:phc_title) %>
|
5
|
-
<% phc_breadcrumb_two yield(:phc_title_tagline) %>
|
6
|
-
<!-- -PHCDEV- Title System -->
|
7
|
-
|
8
|
-
<!-- -PHCDEV- Bradcrumbs -->
|
9
|
-
<ol class="breadcrumb float-xl-end">
|
10
|
-
<li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
|
11
|
-
<li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_two) %></li>
|
12
|
-
</ol>
|
13
|
-
<!-- -PHCDEV- Bradcrumbs -->
|
14
|
-
|
15
|
-
<!-- -PHCDEV- Header -->
|
16
|
-
<h1 class="page-header"><%= yield(:phc_title) %></h1>
|
17
|
-
<!-- -PHCDEV- Header -->
|
18
|
-
|
19
|
-
<!-- -PHCDEV- Panel -->
|
20
|
-
<div class="panel panel-inverse">
|
21
|
-
|
22
|
-
<!-- -PHCDEV- Panel - Heading -->
|
23
|
-
<div class="panel-heading">
|
24
|
-
<h4 class="panel-title"><%= yield(:phc_title) %></h4>
|
25
|
-
</div>
|
26
|
-
<!-- -PHCDEV- Panel - Heading -->
|
27
|
-
|
28
|
-
<!-- -PHCDEV- Panel - Body -->
|
29
|
-
<div class="panel-body">
|
30
|
-
|
31
|
-
<!-- -PHCDEV- Index - Table -->
|
32
|
-
<div class="table-responsive">
|
33
|
-
<table class="table table-striped table-bordered">
|
34
|
-
|
35
|
-
<thead>
|
36
|
-
<tr>
|
37
|
-
<th>Username</th>
|
38
|
-
<th>Full Name</th>
|
39
|
-
<th>Email</th>
|
40
|
-
</tr>
|
41
|
-
</thead>
|
42
|
-
|
43
|
-
<tbody>
|
44
|
-
<% @admin_users.each do |user| %>
|
45
|
-
<tr>
|
46
|
-
<td><%= user.username %></td>
|
47
|
-
<td><%= user.firstname %> <%= user.lastname %></td>
|
48
|
-
<td><%= user.email %></td>
|
49
|
-
</tr>
|
50
|
-
<% end %>
|
51
|
-
</tbody>
|
52
|
-
|
53
|
-
</table>
|
54
|
-
</div>
|
55
|
-
<!-- -PHCDEV- Index - Table -->
|
56
|
-
|
57
|
-
<!-- -PHCDEV- New Button -->
|
58
|
-
<!-- -PHCDEV- New Button -->
|
59
|
-
|
60
|
-
</div>
|
61
|
-
<!-- -PHCDEV- Panel - Body -->
|
62
|
-
|
63
|
-
</div>
|
64
|
-
<!-- -PHCDEV- Panel -->
|
@@ -1,14 +0,0 @@
|
|
1
|
-
AUTH0_CONFIG = Rails.application.config_for(:auth0)
|
2
|
-
|
3
|
-
Rails.application.config.middleware.use OmniAuth::Builder do
|
4
|
-
provider(
|
5
|
-
:auth0,
|
6
|
-
AUTH0_CONFIG['auth0_client_id'],
|
7
|
-
AUTH0_CONFIG['auth0_client_secret'],
|
8
|
-
AUTH0_CONFIG['auth0_domain'],
|
9
|
-
callback_path: '/auth/callback',
|
10
|
-
authorize_params: {
|
11
|
-
scope: 'openid profile'
|
12
|
-
}
|
13
|
-
)
|
14
|
-
end
|