linked_rails-auth 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE +674 -0
- data/README.md +28 -0
- data/Rakefile +34 -0
- data/app/actions/linked_rails/auth/access_token_action_list.rb +16 -0
- data/app/actions/linked_rails/auth/confirmation_action_list.rb +17 -0
- data/app/actions/linked_rails/auth/otp_attempt_action_list.rb +13 -0
- data/app/actions/linked_rails/auth/otp_secret_action_list.rb +31 -0
- data/app/actions/linked_rails/auth/password_action_list.rb +25 -0
- data/app/actions/linked_rails/auth/registration_action_list.rb +15 -0
- data/app/actions/linked_rails/auth/session_action_list.rb +22 -0
- data/app/actions/linked_rails/auth/unlock_action_list.rb +17 -0
- data/app/controllers/linked_rails/auth/access_tokens_controller.rb +131 -0
- data/app/controllers/linked_rails/auth/confirmations_controller.rb +87 -0
- data/app/controllers/linked_rails/auth/otp_attempts_controller.rb +21 -0
- data/app/controllers/linked_rails/auth/otp_secrets_controller.rb +40 -0
- data/app/controllers/linked_rails/auth/passwords_controller.rb +63 -0
- data/app/controllers/linked_rails/auth/registrations_controller.rb +33 -0
- data/app/controllers/linked_rails/auth/sessions_controller.rb +55 -0
- data/app/controllers/linked_rails/auth/unlocks_controller.rb +44 -0
- data/app/forms/linked_rails/auth/access_token_form.rb +20 -0
- data/app/forms/linked_rails/auth/confirmation_form.rb +9 -0
- data/app/forms/linked_rails/auth/otp_attempt_form.rb +9 -0
- data/app/forms/linked_rails/auth/otp_secret_form.rb +12 -0
- data/app/forms/linked_rails/auth/password_form.rb +21 -0
- data/app/forms/linked_rails/auth/registration_form.rb +21 -0
- data/app/forms/linked_rails/auth/session_form.rb +13 -0
- data/app/forms/linked_rails/auth/unlock_form.rb +9 -0
- data/app/helpers/linked_rails/auth/otp_helper.rb +30 -0
- data/app/models/linked_rails/auth/access_token.rb +40 -0
- data/app/models/linked_rails/auth/confirmation.rb +70 -0
- data/app/models/linked_rails/auth/guest_user.rb +29 -0
- data/app/models/linked_rails/auth/otp_attempt.rb +41 -0
- data/app/models/linked_rails/auth/otp_base.rb +57 -0
- data/app/models/linked_rails/auth/otp_secret.rb +91 -0
- data/app/models/linked_rails/auth/password.rb +47 -0
- data/app/models/linked_rails/auth/registration.rb +39 -0
- data/app/models/linked_rails/auth/session.rb +46 -0
- data/app/models/linked_rails/auth/unlock.rb +59 -0
- data/app/policies/linked_rails/auth/access_token_policy.rb +17 -0
- data/app/policies/linked_rails/auth/confirmation_policy.rb +17 -0
- data/app/policies/linked_rails/auth/otp_attempt_policy.rb +17 -0
- data/app/policies/linked_rails/auth/otp_secret_policy.rb +37 -0
- data/app/policies/linked_rails/auth/password_policy.rb +23 -0
- data/app/policies/linked_rails/auth/registration_policy.rb +13 -0
- data/app/policies/linked_rails/auth/session_policy.rb +17 -0
- data/app/policies/linked_rails/auth/unlock_policy.rb +21 -0
- data/app/serializers/linked_rails/auth/access_token_serializer.rb +11 -0
- data/app/serializers/linked_rails/auth/confirmation_serializer.rb +10 -0
- data/app/serializers/linked_rails/auth/otp_attempt_serializer.rb +12 -0
- data/app/serializers/linked_rails/auth/otp_secret_serializer.rb +14 -0
- data/app/serializers/linked_rails/auth/password_serializer.rb +18 -0
- data/app/serializers/linked_rails/auth/registration_serializer.rb +12 -0
- data/app/serializers/linked_rails/auth/session_serializer.rb +10 -0
- data/app/serializers/linked_rails/auth/unlock_serializer.rb +9 -0
- data/config/routes.rb +4 -0
- data/lib/generators/linked_rails/auth/install_generator.rb +155 -0
- data/lib/generators/linked_rails/auth/templates/README +2 -0
- data/lib/generators/linked_rails/auth/templates/doorkeeper_jwt_initializer.rb +52 -0
- data/lib/generators/linked_rails/auth/templates/locales.yml +39 -0
- data/lib/generators/linked_rails/auth/templates/migration.rb.erb +20 -0
- data/lib/linked_rails/auth/auth_helper.rb +101 -0
- data/lib/linked_rails/auth/controller/error_handling.rb +17 -0
- data/lib/linked_rails/auth/controller.rb +16 -0
- data/lib/linked_rails/auth/engine.rb +8 -0
- data/lib/linked_rails/auth/errors/account_locked.rb +10 -0
- data/lib/linked_rails/auth/errors/expired.rb +10 -0
- data/lib/linked_rails/auth/errors/unauthorized.rb +10 -0
- data/lib/linked_rails/auth/errors/unknown_email.rb +14 -0
- data/lib/linked_rails/auth/errors/wrong_password.rb +14 -0
- data/lib/linked_rails/auth/errors.rb +7 -0
- data/lib/linked_rails/auth/routes.rb +86 -0
- data/lib/linked_rails/auth/version.rb +7 -0
- data/lib/linked_rails/auth.rb +46 -0
- data/lib/tasks/linked_rails/auth_tasks.rake +6 -0
- metadata +257 -0
metadata
ADDED
@@ -0,0 +1,257 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: linked_rails-auth
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Arthur Dingemans
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2021-08-26 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: active_model_otp
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: devise
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: doorkeeper
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: doorkeeper-jwt
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: jwt
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: rails
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :runtime
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: rqrcode
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :runtime
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: rubocop
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: rubocop-rails
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - ">="
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0'
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - ">="
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0'
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: sqlite3
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - ">="
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '0'
|
146
|
+
type: :development
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - ">="
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '0'
|
153
|
+
description:
|
154
|
+
email:
|
155
|
+
- arthur@argu.co
|
156
|
+
executables: []
|
157
|
+
extensions: []
|
158
|
+
extra_rdoc_files: []
|
159
|
+
files:
|
160
|
+
- LICENSE
|
161
|
+
- README.md
|
162
|
+
- Rakefile
|
163
|
+
- app/actions/linked_rails/auth/access_token_action_list.rb
|
164
|
+
- app/actions/linked_rails/auth/confirmation_action_list.rb
|
165
|
+
- app/actions/linked_rails/auth/otp_attempt_action_list.rb
|
166
|
+
- app/actions/linked_rails/auth/otp_secret_action_list.rb
|
167
|
+
- app/actions/linked_rails/auth/password_action_list.rb
|
168
|
+
- app/actions/linked_rails/auth/registration_action_list.rb
|
169
|
+
- app/actions/linked_rails/auth/session_action_list.rb
|
170
|
+
- app/actions/linked_rails/auth/unlock_action_list.rb
|
171
|
+
- app/controllers/linked_rails/auth/access_tokens_controller.rb
|
172
|
+
- app/controllers/linked_rails/auth/confirmations_controller.rb
|
173
|
+
- app/controllers/linked_rails/auth/otp_attempts_controller.rb
|
174
|
+
- app/controllers/linked_rails/auth/otp_secrets_controller.rb
|
175
|
+
- app/controllers/linked_rails/auth/passwords_controller.rb
|
176
|
+
- app/controllers/linked_rails/auth/registrations_controller.rb
|
177
|
+
- app/controllers/linked_rails/auth/sessions_controller.rb
|
178
|
+
- app/controllers/linked_rails/auth/unlocks_controller.rb
|
179
|
+
- app/forms/linked_rails/auth/access_token_form.rb
|
180
|
+
- app/forms/linked_rails/auth/confirmation_form.rb
|
181
|
+
- app/forms/linked_rails/auth/otp_attempt_form.rb
|
182
|
+
- app/forms/linked_rails/auth/otp_secret_form.rb
|
183
|
+
- app/forms/linked_rails/auth/password_form.rb
|
184
|
+
- app/forms/linked_rails/auth/registration_form.rb
|
185
|
+
- app/forms/linked_rails/auth/session_form.rb
|
186
|
+
- app/forms/linked_rails/auth/unlock_form.rb
|
187
|
+
- app/helpers/linked_rails/auth/otp_helper.rb
|
188
|
+
- app/models/linked_rails/auth/access_token.rb
|
189
|
+
- app/models/linked_rails/auth/confirmation.rb
|
190
|
+
- app/models/linked_rails/auth/guest_user.rb
|
191
|
+
- app/models/linked_rails/auth/otp_attempt.rb
|
192
|
+
- app/models/linked_rails/auth/otp_base.rb
|
193
|
+
- app/models/linked_rails/auth/otp_secret.rb
|
194
|
+
- app/models/linked_rails/auth/password.rb
|
195
|
+
- app/models/linked_rails/auth/registration.rb
|
196
|
+
- app/models/linked_rails/auth/session.rb
|
197
|
+
- app/models/linked_rails/auth/unlock.rb
|
198
|
+
- app/policies/linked_rails/auth/access_token_policy.rb
|
199
|
+
- app/policies/linked_rails/auth/confirmation_policy.rb
|
200
|
+
- app/policies/linked_rails/auth/otp_attempt_policy.rb
|
201
|
+
- app/policies/linked_rails/auth/otp_secret_policy.rb
|
202
|
+
- app/policies/linked_rails/auth/password_policy.rb
|
203
|
+
- app/policies/linked_rails/auth/registration_policy.rb
|
204
|
+
- app/policies/linked_rails/auth/session_policy.rb
|
205
|
+
- app/policies/linked_rails/auth/unlock_policy.rb
|
206
|
+
- app/serializers/linked_rails/auth/access_token_serializer.rb
|
207
|
+
- app/serializers/linked_rails/auth/confirmation_serializer.rb
|
208
|
+
- app/serializers/linked_rails/auth/otp_attempt_serializer.rb
|
209
|
+
- app/serializers/linked_rails/auth/otp_secret_serializer.rb
|
210
|
+
- app/serializers/linked_rails/auth/password_serializer.rb
|
211
|
+
- app/serializers/linked_rails/auth/registration_serializer.rb
|
212
|
+
- app/serializers/linked_rails/auth/session_serializer.rb
|
213
|
+
- app/serializers/linked_rails/auth/unlock_serializer.rb
|
214
|
+
- config/routes.rb
|
215
|
+
- lib/generators/linked_rails/auth/install_generator.rb
|
216
|
+
- lib/generators/linked_rails/auth/templates/README
|
217
|
+
- lib/generators/linked_rails/auth/templates/doorkeeper_jwt_initializer.rb
|
218
|
+
- lib/generators/linked_rails/auth/templates/locales.yml
|
219
|
+
- lib/generators/linked_rails/auth/templates/migration.rb.erb
|
220
|
+
- lib/linked_rails/auth.rb
|
221
|
+
- lib/linked_rails/auth/auth_helper.rb
|
222
|
+
- lib/linked_rails/auth/controller.rb
|
223
|
+
- lib/linked_rails/auth/controller/error_handling.rb
|
224
|
+
- lib/linked_rails/auth/engine.rb
|
225
|
+
- lib/linked_rails/auth/errors.rb
|
226
|
+
- lib/linked_rails/auth/errors/account_locked.rb
|
227
|
+
- lib/linked_rails/auth/errors/expired.rb
|
228
|
+
- lib/linked_rails/auth/errors/unauthorized.rb
|
229
|
+
- lib/linked_rails/auth/errors/unknown_email.rb
|
230
|
+
- lib/linked_rails/auth/errors/wrong_password.rb
|
231
|
+
- lib/linked_rails/auth/routes.rb
|
232
|
+
- lib/linked_rails/auth/version.rb
|
233
|
+
- lib/tasks/linked_rails/auth_tasks.rake
|
234
|
+
homepage: https://github.com/ontola/linked_rails-auth
|
235
|
+
licenses:
|
236
|
+
- GPL-3.0-or-later
|
237
|
+
metadata: {}
|
238
|
+
post_install_message:
|
239
|
+
rdoc_options: []
|
240
|
+
require_paths:
|
241
|
+
- lib
|
242
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
243
|
+
requirements:
|
244
|
+
- - ">="
|
245
|
+
- !ruby/object:Gem::Version
|
246
|
+
version: 2.4.0
|
247
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
248
|
+
requirements:
|
249
|
+
- - ">="
|
250
|
+
- !ruby/object:Gem::Version
|
251
|
+
version: '0'
|
252
|
+
requirements: []
|
253
|
+
rubygems_version: 3.1.2
|
254
|
+
signing_key:
|
255
|
+
specification_version: 4
|
256
|
+
summary: Easily use devise and doorkeeper in LinkedRails projects
|
257
|
+
test_files: []
|