trestle-auth 0.2.3 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of trestle-auth might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/.browserslistrc +1 -0
- data/.gitignore +5 -0
- data/.rspec +1 -0
- data/.travis.yml +20 -3
- data/Gemfile +14 -0
- data/README.md +35 -8
- data/app/assets/bundle/trestle/auth/bundle.css +1 -0
- data/app/assets/bundle/trestle/auth/userbox.css +1 -0
- data/app/assets/stylesheets/trestle/_custom-auth.css +6 -0
- data/app/assets/stylesheets/trestle/auth.css +2 -0
- data/app/controllers/trestle/auth/sessions_controller.rb +4 -5
- data/app/helpers/trestle/auth/title_helper.rb +20 -0
- data/app/helpers/trestle/auth/user_helper.rb +2 -6
- data/app/views/layouts/trestle/auth.html.erb +11 -16
- data/app/views/trestle/auth/_userbox.html.erb +17 -6
- data/app/views/trestle/auth/sessions/_form.html.erb +32 -0
- data/app/views/trestle/auth/sessions/new.html.erb +8 -31
- data/bin/rails +20 -0
- data/config/{locale → locales}/en.yml +7 -0
- data/config/locales/es.yml +15 -0
- data/config/{locale → locales}/pl.yml +7 -0
- data/config/{locale → locales}/pt-BR.yml +7 -0
- data/config/locales/zh-CN.yml +8 -0
- data/config/routes.rb +8 -3
- data/frontend/_form.scss +79 -0
- data/frontend/_layout.scss +35 -0
- data/{app/assets/stylesheets/trestle/auth/_defaults.scss → frontend/_variables.scss} +2 -6
- data/frontend/index.scss +5 -0
- data/{app/assets/stylesheets/trestle/auth → frontend}/userbox.scss +14 -12
- data/gemfiles/rails-4.2.gemfile +18 -0
- data/gemfiles/rails-5.0.gemfile +18 -0
- data/gemfiles/rails-5.1.gemfile +18 -0
- data/gemfiles/rails-5.2.gemfile +18 -0
- data/gemfiles/rails-6.0.gemfile +18 -0
- data/lib/generators/trestle/auth/account/account_generator.rb +32 -0
- data/lib/generators/trestle/auth/account/templates/admin.rb.erb +47 -0
- data/lib/generators/trestle/auth/admin/admin_generator.rb +15 -1
- data/lib/generators/trestle/auth/admin/templates/admin.rb.erb +28 -5
- data/lib/generators/trestle/auth/install/install_generator.rb +39 -83
- data/lib/generators/trestle/auth/install/templates/basic.rb.erb +121 -0
- data/lib/generators/trestle/auth/install/templates/devise.rb.erb +87 -0
- data/lib/trestle/auth.rb +14 -8
- data/lib/trestle/auth/backends.rb +34 -0
- data/lib/trestle/auth/backends/base.rb +28 -0
- data/lib/trestle/auth/backends/basic.rb +72 -0
- data/lib/trestle/auth/backends/devise.rb +14 -0
- data/lib/trestle/auth/backends/warden.rb +53 -0
- data/lib/trestle/auth/configuration.rb +41 -6
- data/lib/trestle/auth/configuration/warden.rb +11 -0
- data/lib/trestle/auth/controller/authentication.rb +55 -0
- data/lib/trestle/auth/controller/locale.rb +18 -0
- data/lib/trestle/auth/controller/time_zone.rb +18 -0
- data/lib/trestle/auth/controller_methods.rb +3 -74
- data/lib/trestle/auth/engine.rb +1 -1
- data/lib/trestle/auth/model_methods.rb +2 -3
- data/lib/trestle/auth/version.rb +1 -1
- data/package.json +29 -0
- data/trestle-auth.gemspec +14 -10
- data/webpack.config.js +49 -0
- data/yarn.lock +4765 -0
- metadata +67 -31
- data/app/assets/javascripts/trestle/auth.js +0 -0
- data/app/assets/stylesheets/trestle/_custom-auth.scss +0 -4
- data/app/assets/stylesheets/trestle/auth.scss +0 -13
- data/app/assets/stylesheets/trestle/auth/_form.scss +0 -120
- data/app/assets/stylesheets/trestle/auth/_layout.scss +0 -20
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: trestle-auth
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sam Pohlenz
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-10-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: trestle
|
@@ -16,14 +16,20 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 0.9.0
|
20
|
+
- - ">="
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 0.9.3
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
27
|
- - "~>"
|
25
28
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
29
|
+
version: 0.9.0
|
30
|
+
- - ">="
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: 0.9.3
|
27
33
|
- !ruby/object:Gem::Dependency
|
28
34
|
name: bcrypt
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -39,54 +45,55 @@ dependencies:
|
|
39
45
|
- !ruby/object:Gem::Version
|
40
46
|
version: 3.1.7
|
41
47
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
48
|
+
name: rspec-rails
|
43
49
|
requirement: !ruby/object:Gem::Requirement
|
44
50
|
requirements:
|
45
51
|
- - "~>"
|
46
52
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
53
|
+
version: '3.0'
|
48
54
|
type: :development
|
49
55
|
prerelease: false
|
50
56
|
version_requirements: !ruby/object:Gem::Requirement
|
51
57
|
requirements:
|
52
58
|
- - "~>"
|
53
59
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
60
|
+
version: '3.0'
|
55
61
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
62
|
+
name: show_me_the_cookies
|
57
63
|
requirement: !ruby/object:Gem::Requirement
|
58
64
|
requirements:
|
59
65
|
- - "~>"
|
60
66
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
67
|
+
version: '5.0'
|
62
68
|
type: :development
|
63
69
|
prerelease: false
|
64
70
|
version_requirements: !ruby/object:Gem::Requirement
|
65
71
|
requirements:
|
66
72
|
- - "~>"
|
67
73
|
- !ruby/object:Gem::Version
|
68
|
-
version: '
|
74
|
+
version: '5.0'
|
69
75
|
- !ruby/object:Gem::Dependency
|
70
|
-
name:
|
76
|
+
name: timecop
|
71
77
|
requirement: !ruby/object:Gem::Requirement
|
72
78
|
requirements:
|
73
79
|
- - "~>"
|
74
80
|
- !ruby/object:Gem::Version
|
75
|
-
version:
|
81
|
+
version: 0.9.1
|
76
82
|
type: :development
|
77
83
|
prerelease: false
|
78
84
|
version_requirements: !ruby/object:Gem::Requirement
|
79
85
|
requirements:
|
80
86
|
- - "~>"
|
81
87
|
- !ruby/object:Gem::Version
|
82
|
-
version:
|
83
|
-
description:
|
88
|
+
version: 0.9.1
|
89
|
+
description:
|
84
90
|
email:
|
85
91
|
- sam@sampohlenz.com
|
86
92
|
executables: []
|
87
93
|
extensions: []
|
88
94
|
extra_rdoc_files: []
|
89
95
|
files:
|
96
|
+
- ".browserslistrc"
|
90
97
|
- ".gitignore"
|
91
98
|
- ".rspec"
|
92
99
|
- ".travis.yml"
|
@@ -94,43 +101,73 @@ files:
|
|
94
101
|
- LICENSE
|
95
102
|
- README.md
|
96
103
|
- Rakefile
|
97
|
-
- app/assets/
|
98
|
-
- app/assets/
|
99
|
-
- app/assets/stylesheets/trestle/auth.
|
100
|
-
- app/assets/stylesheets/trestle/auth
|
101
|
-
- app/assets/stylesheets/trestle/auth/_form.scss
|
102
|
-
- app/assets/stylesheets/trestle/auth/_layout.scss
|
103
|
-
- app/assets/stylesheets/trestle/auth/userbox.scss
|
104
|
+
- app/assets/bundle/trestle/auth/bundle.css
|
105
|
+
- app/assets/bundle/trestle/auth/userbox.css
|
106
|
+
- app/assets/stylesheets/trestle/_custom-auth.css
|
107
|
+
- app/assets/stylesheets/trestle/auth.css
|
104
108
|
- app/controllers/trestle/auth/sessions_controller.rb
|
109
|
+
- app/helpers/trestle/auth/title_helper.rb
|
105
110
|
- app/helpers/trestle/auth/user_helper.rb
|
106
111
|
- app/views/layouts/trestle/auth.html.erb
|
107
112
|
- app/views/trestle/auth/_userbox.html.erb
|
113
|
+
- app/views/trestle/auth/sessions/_form.html.erb
|
108
114
|
- app/views/trestle/auth/sessions/new.html.erb
|
115
|
+
- bin/rails
|
109
116
|
- config/initializers/trestle.rb
|
110
|
-
- config/
|
111
|
-
- config/
|
112
|
-
- config/
|
117
|
+
- config/locales/en.yml
|
118
|
+
- config/locales/es.yml
|
119
|
+
- config/locales/pl.yml
|
120
|
+
- config/locales/pt-BR.yml
|
121
|
+
- config/locales/zh-CN.yml
|
113
122
|
- config/routes.rb
|
123
|
+
- frontend/_form.scss
|
124
|
+
- frontend/_layout.scss
|
125
|
+
- frontend/_variables.scss
|
126
|
+
- frontend/index.scss
|
127
|
+
- frontend/userbox.scss
|
128
|
+
- gemfiles/rails-4.2.gemfile
|
129
|
+
- gemfiles/rails-5.0.gemfile
|
130
|
+
- gemfiles/rails-5.1.gemfile
|
131
|
+
- gemfiles/rails-5.2.gemfile
|
132
|
+
- gemfiles/rails-6.0.gemfile
|
133
|
+
- lib/generators/trestle/auth/account/account_generator.rb
|
134
|
+
- lib/generators/trestle/auth/account/templates/admin.rb.erb
|
114
135
|
- lib/generators/trestle/auth/admin/admin_generator.rb
|
115
136
|
- lib/generators/trestle/auth/admin/templates/admin.rb.erb
|
116
137
|
- lib/generators/trestle/auth/install/install_generator.rb
|
138
|
+
- lib/generators/trestle/auth/install/templates/basic.rb.erb
|
139
|
+
- lib/generators/trestle/auth/install/templates/devise.rb.erb
|
117
140
|
- lib/generators/trestle/auth/model/model_generator.rb
|
118
141
|
- lib/trestle/auth.rb
|
142
|
+
- lib/trestle/auth/backends.rb
|
143
|
+
- lib/trestle/auth/backends/base.rb
|
144
|
+
- lib/trestle/auth/backends/basic.rb
|
145
|
+
- lib/trestle/auth/backends/devise.rb
|
146
|
+
- lib/trestle/auth/backends/warden.rb
|
119
147
|
- lib/trestle/auth/configuration.rb
|
120
148
|
- lib/trestle/auth/configuration/rememberable.rb
|
149
|
+
- lib/trestle/auth/configuration/warden.rb
|
121
150
|
- lib/trestle/auth/constraint.rb
|
151
|
+
- lib/trestle/auth/controller/authentication.rb
|
152
|
+
- lib/trestle/auth/controller/locale.rb
|
153
|
+
- lib/trestle/auth/controller/time_zone.rb
|
122
154
|
- lib/trestle/auth/controller_methods.rb
|
123
155
|
- lib/trestle/auth/engine.rb
|
124
156
|
- lib/trestle/auth/model_methods.rb
|
125
157
|
- lib/trestle/auth/model_methods/rememberable.rb
|
126
158
|
- lib/trestle/auth/null_user.rb
|
127
159
|
- lib/trestle/auth/version.rb
|
160
|
+
- package.json
|
128
161
|
- trestle-auth.gemspec
|
162
|
+
- webpack.config.js
|
163
|
+
- yarn.lock
|
129
164
|
homepage: https://www.trestle.io
|
130
165
|
licenses:
|
131
166
|
- LGPL-3.0
|
132
|
-
metadata:
|
133
|
-
|
167
|
+
metadata:
|
168
|
+
homepage_uri: https://www.trestle.io
|
169
|
+
source_code_uri: https://github.com/TrestleAdmin/trestle-auth
|
170
|
+
post_install_message:
|
134
171
|
rdoc_options: []
|
135
172
|
require_paths:
|
136
173
|
- lib
|
@@ -138,16 +175,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
138
175
|
requirements:
|
139
176
|
- - ">="
|
140
177
|
- !ruby/object:Gem::Version
|
141
|
-
version:
|
178
|
+
version: 2.3.0
|
142
179
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
143
180
|
requirements:
|
144
181
|
- - ">="
|
145
182
|
- !ruby/object:Gem::Version
|
146
183
|
version: '0'
|
147
184
|
requirements: []
|
148
|
-
|
149
|
-
|
150
|
-
signing_key:
|
185
|
+
rubygems_version: 3.0.8
|
186
|
+
signing_key:
|
151
187
|
specification_version: 4
|
152
188
|
summary: Authentication plugin for the Trestle admin framework
|
153
189
|
test_files: []
|
File without changes
|
@@ -1,13 +0,0 @@
|
|
1
|
-
// User-defined variables
|
2
|
-
@import "trestle/support";
|
3
|
-
@import "auth/defaults";
|
4
|
-
|
5
|
-
// 3rd party dependencies
|
6
|
-
@import "trestle/bootstrap";
|
7
|
-
@import "trestle/font-awesome";
|
8
|
-
|
9
|
-
@import "auth/layout";
|
10
|
-
@import "auth/form";
|
11
|
-
|
12
|
-
// User customizations
|
13
|
-
@import "trestle/custom-auth";
|
@@ -1,120 +0,0 @@
|
|
1
|
-
a {
|
2
|
-
color: rgba(white, 0.75);
|
3
|
-
&:hover { color: white; }
|
4
|
-
}
|
5
|
-
|
6
|
-
.auth-header {
|
7
|
-
text-align: center;
|
8
|
-
margin-bottom: 20px;
|
9
|
-
|
10
|
-
img {
|
11
|
-
max-width: 100%;
|
12
|
-
}
|
13
|
-
}
|
14
|
-
|
15
|
-
.form-control, .input-group-addon {
|
16
|
-
background: $auth-form-control-bg;
|
17
|
-
border: $auth-form-control-border;
|
18
|
-
}
|
19
|
-
|
20
|
-
.form-control {
|
21
|
-
box-shadow: none;
|
22
|
-
|
23
|
-
color: $auth-form-control-color;
|
24
|
-
|
25
|
-
height: auto;
|
26
|
-
padding: 12px 5px;
|
27
|
-
|
28
|
-
font-size: 16px;
|
29
|
-
|
30
|
-
&:focus {
|
31
|
-
outline-color: transparent;
|
32
|
-
outline-style: none;
|
33
|
-
box-shadow: none;
|
34
|
-
}
|
35
|
-
|
36
|
-
&::placeholder {
|
37
|
-
color: $auth-form-control-placeholder;
|
38
|
-
}
|
39
|
-
|
40
|
-
&:-webkit-autofill {
|
41
|
-
-webkit-text-fill-color: $auth-form-control-color;
|
42
|
-
|
43
|
-
&, &:hover, &:focus, &:active {
|
44
|
-
transition: background-color 9999999s ease-in-out 0s;
|
45
|
-
}
|
46
|
-
}
|
47
|
-
}
|
48
|
-
|
49
|
-
.input-group-addon {
|
50
|
-
color: rgba(white, 0.5);
|
51
|
-
|
52
|
-
&:first-child {
|
53
|
-
padding-right: 5px;
|
54
|
-
}
|
55
|
-
}
|
56
|
-
|
57
|
-
.remember-me {
|
58
|
-
display: block;
|
59
|
-
font-weight: normal;
|
60
|
-
color: $auth-remember-me-color;
|
61
|
-
background: $auth-remember-me-bg;
|
62
|
-
border-radius: 5px;
|
63
|
-
padding: 10px 15px;
|
64
|
-
font-size: 13px;
|
65
|
-
cursor: pointer;
|
66
|
-
|
67
|
-
input {
|
68
|
-
margin-right: 10px;
|
69
|
-
margin-top: 0;
|
70
|
-
vertical-align: middle;
|
71
|
-
}
|
72
|
-
|
73
|
-
&:hover {
|
74
|
-
background: opacify($auth-remember-me-bg, 0.05);
|
75
|
-
}
|
76
|
-
}
|
77
|
-
|
78
|
-
.btn {
|
79
|
-
box-shadow: rgba(black, 0.1) 0 0 2px;
|
80
|
-
padding: 12px;
|
81
|
-
font-size: 16px;
|
82
|
-
}
|
83
|
-
|
84
|
-
.btn-primary {
|
85
|
-
outline: none;
|
86
|
-
|
87
|
-
color: $auth-login-btn-color;
|
88
|
-
background: $auth-login-btn-bg;
|
89
|
-
border: $auth-login-btn-border;
|
90
|
-
|
91
|
-
&:hover {
|
92
|
-
background-color: darken($auth-login-btn-bg, 2.5%);
|
93
|
-
border-color: darken($auth-login-btn-border, 5%);
|
94
|
-
}
|
95
|
-
|
96
|
-
&:focus, &:active {
|
97
|
-
background-color: darken($auth-login-btn-bg, 5%);
|
98
|
-
border-color: darken($auth-login-btn-border, 10%);
|
99
|
-
}
|
100
|
-
|
101
|
-
&:active:focus {
|
102
|
-
outline: none !important;
|
103
|
-
background-color: darken($auth-login-btn-bg, 10%);
|
104
|
-
border-color: darken($auth-login-btn-border, 15%);
|
105
|
-
}
|
106
|
-
}
|
107
|
-
|
108
|
-
.form-footer {
|
109
|
-
font-size: 12px;
|
110
|
-
}
|
111
|
-
|
112
|
-
.forgot-password {
|
113
|
-
float: right;
|
114
|
-
padding: 10px 5px;
|
115
|
-
}
|
116
|
-
|
117
|
-
.alert-danger {
|
118
|
-
background: $theme-bg-texture-url fixed, $alert-danger-bg;
|
119
|
-
color: white;
|
120
|
-
}
|
@@ -1,20 +0,0 @@
|
|
1
|
-
html, body {
|
2
|
-
height: 100%;
|
3
|
-
}
|
4
|
-
|
5
|
-
body {
|
6
|
-
-webkit-font-smoothing: antialiased;
|
7
|
-
|
8
|
-
margin: 0;
|
9
|
-
overflow: hidden;
|
10
|
-
|
11
|
-
color: white;
|
12
|
-
background: $auth-bg;
|
13
|
-
|
14
|
-
display: flex;
|
15
|
-
}
|
16
|
-
|
17
|
-
.container {
|
18
|
-
margin: auto;
|
19
|
-
width: 320px;
|
20
|
-
}
|