rodauth-rails 1.14.0 → 1.15.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (52) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +41 -41
  3. data/lib/generators/rodauth/install_generator.rb +6 -22
  4. data/lib/generators/rodauth/mailer/email_auth.erb +6 -0
  5. data/lib/generators/rodauth/mailer/otp_disabled.erb +6 -0
  6. data/lib/generators/rodauth/mailer/otp_locked_out.erb +6 -0
  7. data/lib/generators/rodauth/mailer/otp_setup.erb +6 -0
  8. data/lib/generators/rodauth/mailer/otp_unlock_failed.erb +6 -0
  9. data/lib/generators/rodauth/mailer/otp_unlocked.erb +6 -0
  10. data/lib/generators/rodauth/mailer/password_changed.erb +6 -0
  11. data/lib/generators/rodauth/mailer/reset_password.erb +6 -0
  12. data/lib/generators/rodauth/mailer/reset_password_notify.erb +6 -0
  13. data/lib/generators/rodauth/mailer/unlock_account.erb +6 -0
  14. data/lib/generators/rodauth/mailer/verify_account.erb +6 -0
  15. data/lib/generators/rodauth/mailer/verify_login_change.erb +7 -0
  16. data/lib/generators/rodauth/mailer/webauthn_authenticator_added.erb +6 -0
  17. data/lib/generators/rodauth/mailer/webauthn_authenticator_removed.erb +6 -0
  18. data/lib/generators/rodauth/mailer_generator.rb +126 -0
  19. data/lib/generators/rodauth/migration/active_record/audit_logging.erb +2 -2
  20. data/lib/generators/rodauth/migration/active_record/jwt_refresh.erb +0 -1
  21. data/lib/generators/rodauth/migration/active_record/otp_unlock.erb +7 -0
  22. data/lib/generators/rodauth/migration/sequel/audit_logging.erb +2 -2
  23. data/lib/generators/rodauth/migration/sequel/jwt_refresh.erb +1 -1
  24. data/lib/generators/rodauth/migration/sequel/otp_unlock.erb +6 -0
  25. data/lib/generators/rodauth/migration_generator.rb +3 -3
  26. data/lib/generators/rodauth/templates/INSTRUCTIONS +8 -2
  27. data/lib/generators/rodauth/templates/app/controllers/rodauth_controller.rb.tt +18 -2
  28. data/lib/generators/rodauth/templates/app/mailers/rodauth_mailer.rb.tt +4 -50
  29. data/lib/generators/rodauth/templates/app/misc/rodauth_main.rb.tt +5 -26
  30. data/lib/generators/rodauth/templates/app/models/account.rb.tt +1 -1
  31. data/lib/generators/rodauth/templates/app/views/rodauth/otp_unlock.html.erb +21 -0
  32. data/lib/generators/rodauth/templates/app/views/rodauth/otp_unlock_not_available.html.erb +5 -0
  33. data/lib/generators/rodauth/templates/app/views/rodauth/tailwind/otp_unlock.html.erb +22 -0
  34. data/lib/generators/rodauth/templates/app/views/rodauth/tailwind/otp_unlock_not_available.html.erb +14 -0
  35. data/lib/generators/rodauth/templates/app/views/rodauth/tailwind/webauthn_remove.html.erb +1 -0
  36. data/lib/generators/rodauth/templates/app/views/rodauth/webauthn_remove.html.erb +1 -0
  37. data/lib/generators/rodauth/templates/app/views/rodauth_mailer/otp_disabled.text.erb +2 -0
  38. data/lib/generators/rodauth/templates/app/views/rodauth_mailer/otp_locked_out.text.erb +9 -0
  39. data/lib/generators/rodauth/templates/app/views/rodauth_mailer/otp_setup.text.erb +2 -0
  40. data/lib/generators/rodauth/templates/app/views/rodauth_mailer/otp_unlock_failed.text.erb +8 -0
  41. data/lib/generators/rodauth/templates/app/views/rodauth_mailer/otp_unlocked.text.erb +2 -0
  42. data/lib/generators/rodauth/templates/app/views/rodauth_mailer/webauthn_authenticator_added.text.erb +3 -0
  43. data/lib/generators/rodauth/templates/app/views/rodauth_mailer/webauthn_authenticator_removed.text.erb +3 -0
  44. data/lib/generators/rodauth/views_generator.rb +2 -1
  45. data/lib/rodauth/rails/feature/base.rb +2 -1
  46. data/lib/rodauth/rails/feature/instrumentation.rb +12 -6
  47. data/lib/rodauth/rails/feature/internal_request.rb +16 -6
  48. data/lib/rodauth/rails/version.rb +1 -1
  49. data/lib/rodauth/rails.rb +1 -1
  50. data/rodauth-rails.gemspec +4 -4
  51. metadata +35 -8
  52. data/CHANGELOG.md +0 -568
data/CHANGELOG.md DELETED
@@ -1,568 +0,0 @@
1
- ## 1.14.0 (2024-04-09)
2
-
3
- * Allow declaring controller callbacks for specific Rodauth routes via `:only` and `:except` keyword arguments (@janko)
4
-
5
- * Instrument Rodauth controller and route name instead of `RodauthApp#call` on Rodauth requests (@janko)
6
-
7
- * Remove custom `#inspect` from Rodauth app middleware subclass in favour of Ruby 3.3+ `Module#set_temporary_name` (@janko)
8
-
9
- * Fix `data-turbo="false"` being added in the wrong place in reset password request form on login validation errors (@janko)
10
-
11
- * Fix format being inferred from `Accept` header instead URL path when calling `http_basic_auth` in the Rodauth middleware (@janko)
12
-
13
- * Allow referencing custom column attributes on `rails_account` before the account is persisted (@janko)
14
-
15
- * Retrieve auth class through the Rodauth app in generated account fixtures (@janko)
16
-
17
- * Use `include Rodauth::Rails.model` again in generated account model (@janko)
18
-
19
- * Avoid generated `convert_token_id_to_integer?` causing tokens to get silently rejected after switching to UUIDs (@janko)
20
-
21
- * Allow referencing custom column attributes on `rails_account` during account creation (@janko)
22
-
23
- * Drop support for Ruby 2.3 and 2.4 (@janko)
24
-
25
- ## 1.13.0 (2023-12-25) :christmas_tree:
26
-
27
- * Add `#rodauth` method to controller test helpers (@janko)
28
-
29
- * When session middleware is required by Rodauth but missing, point to Rails docs instead of Roda (@janko)
30
-
31
- * Set `login_confirm_param` to `"email-confirm"` in default configuration for consistency (@janko)
32
-
33
- * Set `convert_token_id_to_integer?` in default configuration to avoid DB queries on boot (@janko)
34
-
35
- ## 1.12.0 (2023-10-20)
36
-
37
- * Allow generating view template for `confirm_password` feature (igor-alexandrov)
38
-
39
- * Forward all requests unhandled by the Rodauth app to the Rails router (@janko)
40
-
41
- * Use `Rodauth::Model()` directly for including in generated account model (@janko)
42
-
43
- * Set `{jwt,argon2}_secret` to `hmac_secret` on `rodauth:install` with `--{jwt,argon2}` (@janko)
44
-
45
- * Expose `#turbo_stream` method in `Rodauth::Rails::Auth` when using turbo-rails gem (@janko)
46
-
47
- * Add `#rails_cookies` method for accessing the Action Dispatch cookie jar (@janko)
48
-
49
- ## 1.11.0 (2023-08-21)
50
-
51
- * Exclude WebAuthn JS routes in `rodauth:routes`, since those stop being relevant with custom JS (@janko)
52
-
53
- * Separate HTTP verbs with `|` symbol in `rodauth:routes` for consistency with `rails routes` (@janko)
54
-
55
- * Include two factor manage & auth JSON POST routes in `rodauth:routes` task (@janko)
56
-
57
- * Make `rodauth:routes` rake task appear in `rails -T` list (@janko)
58
-
59
- * Accept plugin options in `Rodauth::Rails.lib` (@janko)
60
-
61
- * Support skipping loading Roda `render` plugin by passing `render: false` (@janko)
62
-
63
- ## 1.10.0 (2023-07-26)
64
-
65
- * Add `Rodauth::Rails.lib` for easier usage of Rodauth as a library in Rails apps (@janko)
66
-
67
- ## 1.9.0 (2023-05-22)
68
-
69
- * Add support for webauthn_autofill feature to the views generator (@janko)
70
-
71
- * Generate view templates for two_factor_base feature only if explicitly specified (@janko)
72
-
73
- * Set `login_param "email"` in generated Rodauth configuration (@janko)
74
-
75
- * Handle Trilogy adapter in generators (@janko)
76
-
77
- * Use `email_subject_prefix` in generated mailer (@janko)
78
-
79
- * Fix typo in `unlock_account` email template (@zavan)
80
-
81
- * Retrieve current account using `account!` in `#rails_account` method (@janko)
82
-
83
- * Drop support for Rails 4.2 (@janko)
84
-
85
- ## 1.8.0 (2023-02-25)
86
-
87
- * Add table argument to `rodauth:install` generator (@janko)
88
-
89
- * Add `--prefix` option to `rodauth:migration` generator for choosing table prefix (@janko)
90
-
91
- * Add `--argon2` option to `rodauth:install` generator for configuring password hashing using Argon2 (@janko)
92
-
93
- * Move generated Sequel setup from initializer into the Rodauth configuration for faster boot time (@janko)
94
-
95
- * Use `email_to` and `email_from` Rodauth methods in generated mailer (@janko)
96
-
97
- * Add missing foreign key constraint in `email_auth` Active Record migration (@janko)
98
-
99
- * Correctly retrieve JSON request body when using Falcon (@janko)
100
-
101
- * Render validation error correctly in generated `webauthn_remove` Tailwind template (@janko)
102
-
103
- ## 1.7.1 (2023-01-25)
104
-
105
- * Make internal_request integration work on Rack 3.x (@janko)
106
-
107
- * Add missing Tailwind templates for WebAuthn feature (@janko)
108
-
109
- * Use renamed `webauthn_credential_options_for_get` method in generated `webauthn_auth` template (@janko)
110
-
111
- * Fix generated `webauthn_setup` template not working with webauthn_verify_account feature (@janko)
112
-
113
- * Hide text fields in generated `webauthn_{setup,auth}` templates (@janko)
114
-
115
- * Fix loading JavaScript for WebAuthn in generated `webauthn_{setup,auth}` templates (@janko)
116
-
117
- * Make built-in mailer work in Rails 6.x on Ruby 3.2 (@janko)
118
-
119
- ## 1.7.0 (2022-12-21)
120
-
121
- * Add Tailwind CSS templates to `rodauth:views` generator via the `--css=tailwind` option (@benkoshy, @janko)
122
-
123
- ## 1.6.4 (2022-11-24)
124
-
125
- * Make `#rails_account` work on directly allocated Rodauth object with `@account` set (@janko)
126
-
127
- * Add commented out email configuration for `password_reset_notify` feature (@janko)
128
-
129
- * Design generated mailer in a way that exposes the Rodauth object (@janko)
130
-
131
- * Fix generated logout page always logging out globally when using active sessions feature (@janko)
132
-
133
- ## 1.6.3 (2022-11-15)
134
-
135
- * Suggest passing an integer to `verify_account_grace_period` instead of `ActiveSupport::Duration` (@vlado)
136
-
137
- * Use `pass` plugin for forwarding other `{prefix}/*` requests when automatically routing the prefix (@janko)
138
-
139
- * Set minimum password length to 8 in the generated configuration, as per OWASP recommendation (@janko)
140
-
141
- * Set maximum password bytesize to 72 in the generated configuration, as bcrypt truncates inputs longer than 72 bytes (@janko)
142
-
143
- ## 1.6.2 (2022-09-19)
144
-
145
- * Use matching precision for current timestamp default values in Active Record 7.0+ migrations on MySQL (@janko)
146
-
147
- ## 1.6.1 (2022-09-19)
148
-
149
- * Fix argument error when calling `RodauthMailer` in default configuration (@janko)
150
-
151
- ## 1.6.0 (2022-09-14)
152
-
153
- * Avoid creating IDENTITY columns for primary foreign keys on SQL Server with Active Record (@janko)
154
-
155
- * Make configuration name argument required in generated `RodauthMailer` (@janko)
156
-
157
- * Make the Rails integration work without Action Mailer loaded (@janko)
158
-
159
- * Don't redirect to login page when account is missing in `current_account` method (@janko)
160
-
161
- ## 1.5.5 (2022-08-04)
162
-
163
- * Don't raise `ArgumentError` when calling `#current_account` without being logged in (@benkoshy)
164
-
165
- * Abort `rodauth:views` generator when unknown feature was specified (@janko)
166
-
167
- * Abort `rodauth:migration` generator when unknown feature was specified (@janko)
168
-
169
- ## 1.5.4 (2022-07-21)
170
-
171
- * Generate account fixtures in `spec/fixtures` directory when using RSpec (@benkoshy)
172
-
173
- * Generate account fixtures in `test/fixtures` directory instead of `app/test/fixtures` (@benkoshy)
174
-
175
- * Use string status column values in generated accounts fixture (@janko)
176
-
177
- * Create integer status column in generated Sequel migration (@janko)
178
-
179
- * Store password hash in accounts table in generated Sequel migration (@janko)
180
-
181
- ## 1.5.3 (2022-07-21)
182
-
183
- *Yanked*
184
-
185
- ## 1.5.2 (2022-07-03)
186
-
187
- * Bump Rodauth dependency version to 2.25+ (@janko)
188
-
189
- * Generate fixture file for accounts on `rodauth:install` (@benkoshy)
190
-
191
- * Fix error about undefined `controller_path` method in `newrelic_rpm` gem instrumentation (@janko)
192
-
193
- * Don't display disabled routes in `rodauth:routes` (@janko)
194
-
195
- * Display HTTP verbs of endpoints in `rodauth:routes` rake task (@janko)
196
-
197
- ## 1.5.1 (2022-06-19)
198
-
199
- * Fix syntax for creating `citext` PG extension in Sequel base migration (@Empact)
200
-
201
- ## 1.5.0 (2022-06-11)
202
-
203
- * Remove `content_for` calls from generated view templates (@janko)
204
-
205
- * Set title instance variable to `@page_title` in generated configuration (@janko)
206
-
207
- * Set title instance variable on the controller when `title_instance_variable` is set (@HoneyryderChuck)
208
-
209
- ## 1.4.2 (2022-05-15)
210
-
211
- * Stop passing email addresses in mailer arguments on verifying login change (@janko)
212
-
213
- * Extract finding account into a method in the generated mailer (@janko)
214
-
215
- * Make generated Action Mailer integration work with secondary Rodauth configurations (@janko)
216
-
217
- * Include `Rodauth::Rails.model` in generated Sequel account model as well (@janko)
218
-
219
- ## 1.4.1 (2022-05-08)
220
-
221
- * Deprecate `Rodauth::Rails::Model` constant (@janko)
222
-
223
- * Remove `Rodauth::Rails::Auth#associations` in favour of new association registration API (@janko)
224
-
225
- * Extract model mixin into the rodauth-model gem (@janko)
226
-
227
- ## 1.4.0 (2022-05-04)
228
-
229
- * Move association definitions to `#associations` Rodauth method, allowing external features to extend them (@janko)
230
-
231
- * Add Sequel support for generating database migrations, model, and mailer (@janko)
232
-
233
- * Skip calling Rodauth app on asset requests when using Sprockets or Propshaft (@janko)
234
-
235
- ## 1.3.1 (2022-04-22)
236
-
237
- * Ensure response status is logged when calling a halting rodauth method inside a controller (@janko)
238
-
239
- ## 1.3.0 (2022-04-01)
240
-
241
- * Store password hash on the `accounts` table in generated Rodauth migration and configuration (@janko)
242
-
243
- * Add support for controller testing with Minitest or RSpec (@janko)
244
-
245
- * Fix `enum` declaration in generated `Account` model for Active Record < 7.0 (@janko)
246
-
247
- * Ensure `require_login_redirect` points to the login page even if the login route changes (@janko)
248
-
249
- ## 1.2.2 (2022-02-22)
250
-
251
- * Fix flash messages not being preserved through consecutive redirects (@janko)
252
-
253
- ## 1.2.1 (2022-02-19)
254
-
255
- * Change `accounts.status` column type from string to integer (@zhongsheng)
256
-
257
- ## 1.2.0 (2022-02-11)
258
-
259
- * Work around Active Record 4.2 not supporting procs for literal SQL column default (@janko)
260
-
261
- * Avoid re-fetching the account in `#current_account` when it has already been fetched by Rodauth (@janko)
262
-
263
- * Extract `#current_account` helper functionality into `#rails_account` Rodauth method (@janko)
264
-
265
- * Use default account status values in generated configuration, with enum on `Account` model (@janko)
266
-
267
- ## 1.1.0 (2022-01-16)
268
-
269
- * Automatically route the path prefix in `r.rodauth` if one has been set (@janko)
270
-
271
- ## 1.0.0 (2021-12-25)
272
-
273
- * Set Rodauth's email subject in the generated mailer (@janko)
274
-
275
- * Raise error when outside of a request and `config.action_mailer.default_url_options` is unset (@janko)
276
-
277
- * Avoid method re-definition warnings with named auth classes caused by `post_configure` being called twice (@janko)
278
-
279
- * Don't modify `config.action_mailer.default_url_options` when `:protocol` is missing (@janko)
280
-
281
- * Move `Rodauth::Rails.url_options` into `Rodauth::Auth#rails_url_options` (@janko)
282
-
283
- * Generate named auth classes in `rodauth:install` generator (@janko)
284
-
285
- * Generate `rodauth_app.rb` in `app/misc` directory (@janko)
286
-
287
- * Add `--name` option to `rodauth:migration` generator (@janko)
288
-
289
- * Disable Turbo in all built-in and generated views (@janko)
290
-
291
- * Modify generated mailer integration to generate URLs according to `default_url_options` (@janko)
292
-
293
- * Skip Active Record files in `rodauth:install` if `ActiveRecord::Railtie` is not defined (@janko)
294
-
295
- * Stop loading `pass` plugin in `Rodauth::Rails::App` (@janko)
296
-
297
- * Remove deprecated `:query` and `:form` options in `Rodauth::Rails.rodauth` (@janko)
298
-
299
- * Require internal_request feature to be enabled in `Rodauth::Rails.rodauth` (@janko)
300
-
301
- ## 0.18.1 (2021-12-16)
302
-
303
- * Loosen Rails gem dependency to allow Rails 7.x (Intrepidd)
304
-
305
- ## 0.18.0 (2021-11-05)
306
-
307
- * Disable Turbo on the generated login form (@janko)
308
-
309
- * Generate controller views with `form_with` helper on Rails 5.1+ (@janko)
310
-
311
- * Fix missing layout error when rendering Rodauth's built-in templates when using Turbo on Rails 6.0+ (@janko)
312
-
313
- * Fix `Rodauth::Rails.middleware` config not actually affecting middleware insertion (@janko)
314
-
315
- * Set page titles in generated view templates (@janko)
316
-
317
- * Merge field and button partials into view templates (@janko)
318
-
319
- * Raise error for unknown configuration in `Rodauth::Rails.model` (@janko)
320
-
321
- * Generate views for all enabled features by default in `rodauth:views` generator (@janko)
322
-
323
- * Add `Rodauth::Rails::App.rodauth!` which raises an error for unknown configuration (@janko)
324
-
325
- * Remove deprecated `--features` option from `rodauth:views` generator (@janko)
326
-
327
- * Inline `_recovery_codes_form.html.erb` partial into `recovery_codes.html.erb` (@janko)
328
-
329
- * Use Rodauth helper methods for texts in generated views, for easier i18n (@janko)
330
-
331
- * Allow setting passing a `Sequel::Model` to `:account` in `Rodauth::Rails.rodauth` (@janko)
332
-
333
- ## 0.17.1 (2021-10-20)
334
-
335
- * Skip checking CSRF when request forgery protection wasn't loaded on the controller (@janko)
336
-
337
- * Create partial unique index for `accounts.email` column when using `sqlite3` adapter (@janko)
338
-
339
- * Revert setting `delete_account_on_close?` to `true` in generated `rodauth_app.rb` (@janko)
340
-
341
- * Disable Turbo in `_recovery_codes_form.html.erb`, since viewing recovery codes isn't Turbo-compatible (@janko)
342
-
343
- * Generate JSON configuration on `rodauth:install` for API-only with sessions enabled (@janko)
344
-
345
- * Generate JWT configuration on `rodauth:install` only for API-only apps without sessions enabled (@janko)
346
-
347
- * Don't generate JWT configuration when `rodauth:install --json` was run in API-only app (@janko)
348
-
349
- * Use `config.action_mailer.default_url_options` in path_class_methods feature (@janko)
350
-
351
- ## 0.17.0 (2021-10-05)
352
-
353
- * Set `delete_account_on_close?` to `true` in generated `rodauth_app.rb` (@janko)
354
-
355
- * Change default `:dependent` option for associations to `:delete`/`:delete_all` (@janko)
356
-
357
- * Add `rails_account_model` configuration method for when the account model cannot be inferred (@janko)
358
-
359
- ## 0.16.0 (2021-09-26)
360
-
361
- * Add `#current_account` to methods defined on `ActionController::Base` (@janko)
362
-
363
- * Add missing template for verify_login_change feature to `rodauth:views` generator (@janko)
364
-
365
- * Add `#rodauth_response` controller method for converting rodauth responses into controller responses (@janko)
366
-
367
- ## 0.15.0 (2021-07-29)
368
-
369
- * Add `Rodauth::Rails::Model` mixin that defines password attribute and associations on the model (@janko)
370
-
371
- * Add support for the new internal_request feature (@janko)
372
-
373
- * Implement `Rodauth::Rails.rodauth` in terms of the internal_request feature (@janko)
374
-
375
- ## 0.14.0 (2021-07-10)
376
-
377
- * Speed up template rendering by only searching formats accepted by the request (@janko)
378
-
379
- * Add `--name` option to `rodauth:views` generator for specifying different rodauth configuration (@janko)
380
-
381
- * Infer correct template path from configured controller in `rodauth:views` generator (@janko)
382
-
383
- * Raise `ArgumentError` if undefined rodauth configuration is passed to `Rodauth::Rails.app` (@janko)
384
-
385
- * Make `#rails_controller` method on the rodauth instance public (@janko)
386
-
387
- * Remove `--directory` option from `rodauth:views` generator (@janko)
388
-
389
- * Remove `#features` and `#routes` writer and `#configuration` reader from `Rodauth::Rails::Auth` (@janko)
390
-
391
- ## 0.13.0 (2021-06-10)
392
-
393
- * Add `:query`, `:form`, `:session`, `:account`, and `:env` options to `Rodauth::Rails.rodauth` (@janko)
394
-
395
- ## 0.12.0 (2021-05-15)
396
-
397
- * Include total view render time in logs for Rodauth requests (@janko)
398
-
399
- * Instrument redirects (@janko)
400
-
401
- * Instrument Rodauth requests on `action_controller` namespace (@janko)
402
-
403
- * Update templates for Boostrap 5 compatibility (@janko)
404
-
405
- * Log request parameters for Rodauth requests (@janko)
406
-
407
- ## 0.11.0 (2021-05-06)
408
-
409
- * Add controller-like logging for requests to Rodauth endpoints (@janko)
410
-
411
- * Add `#rails_routes` to Roda and Rodauth instance for accessing Rails route helpers (@janko)
412
-
413
- * Add `#rails_request` to Roda and Rodauth instance for retrieving an `ActionDispatch::Request` instance (@janko)
414
-
415
- ## 0.10.0 (2021-03-23)
416
-
417
- * Add `Rodauth::Rails::Auth` superclass for moving configurations into separate files (@janko)
418
-
419
- * Load the `pass` Roda plugin and recommend calling `r.pass` on prefixed routes (@janko)
420
-
421
- * Improve Roda middleware inspect output (@janko)
422
-
423
- * Create `RodauthMailer` and email templates in `rodauth:install`, and remove `rodauth:mailer` (@janko)
424
-
425
- * Raise `KeyError` in `#rodauth` method when the Rodauth instance doesn't exist (@janko)
426
-
427
- * Add `Rodauth::Rails.authenticated` routing constraint for requiring authentication (@janko)
428
-
429
- ## 0.9.1 (2021-02-10)
430
-
431
- * Fix flash integration being loaded for API-only apps and causing an error (@dmitryzuev)
432
-
433
- * Change account status column default to `unverified` in migration to match Rodauth's default (@basabin54)
434
-
435
- ## 0.9.0 (2021-02-07)
436
-
437
- * Load Roda's JSON support by default, so that enabling `json`/`jwt` feature is all that's needed (@janko)
438
-
439
- * Bump Rodauth dependency to 2.9+ (@janko)
440
-
441
- * Add `--json` option for `rodauth:install` generator for configuring `json` feature (@janko)
442
-
443
- * Add `--jwt` option for `rodauth:install` generator for configuring `jwt` feature (@janko)
444
-
445
- * Remove the `--api` option from `rodauth:install` generator (@janko)
446
-
447
- ## 0.8.2 (2021-01-10)
448
-
449
- * Reset Rails session on `#clear_session`, protecting from potential session fixation attacks (@janko)
450
-
451
- ## 0.8.1 (2021-01-04)
452
-
453
- * Fix blank email body when `json: true` and `ActionController::API` descendant are used (@janko)
454
-
455
- * Make view and email rendering work when there are multiple configurations and one is `json: :only` (@janko)
456
-
457
- * Don't attempt to protect against forgery when `ActionController::API` descendant is used (@janko)
458
-
459
- * Mark content of rodauth built-in partials as HTML-safe (@janko)
460
-
461
- ## 0.8.0 (2021-01-03)
462
-
463
- * Add `--api` option to `rodauth:install` generator for choosing JSON-only configuration (@janko)
464
-
465
- * Don't blow up when a Rodauth request is made using an unsupported HTTP verb (@janko)
466
-
467
- ## 0.7.0 (2020-11-27)
468
-
469
- * Add `#rails_controller_eval` method for running code in context of a controller instance (@janko)
470
-
471
- * Detect `secret_key_base` from credentials and `$SECRET_KEY_BASE` environment variable (@janko)
472
-
473
- ## 0.6.1 (2020-11-25)
474
-
475
- * Generate the Rodauth controller for API-only Rails apps as well (@janko)
476
-
477
- * Fix remember cookie deadline not extending in remember feature (@janko)
478
-
479
- ## 0.6.0 (2020-11-22)
480
-
481
- * Add `Rodauth::Rails.rodauth` method for retrieving Rodauth instance outside of request context (@janko)
482
-
483
- * Add default Action Dispatch response headers in Rodauth responses (@janko)
484
-
485
- * Run controller rescue handlers around Rodauth actions (@janko)
486
-
487
- * Run controller action callbacks around Rodauth actions (@janko)
488
-
489
- ## 0.5.0 (2020-11-16)
490
-
491
- * Support more Active Record adapters in `rodauth:install` generator (@janko)
492
-
493
- * Add `rodauth:migration` generator for creating tables of specified features (@janko)
494
-
495
- * Use UUIDs for primary keys if so configured in Rails generators (@janko)
496
-
497
- * Add `rodauth:routes` rake task for printing routes handled by Rodauth middleware (@janko)
498
-
499
- ## 0.4.2 (2020-11-08)
500
-
501
- * Drop support for Ruby 2.2 (@janko)
502
-
503
- * Bump `sequel-activerecord_connection` dependency to 1.1+ (@janko)
504
-
505
- * Set default bcrypt hash cost to `1` in tests (@janko)
506
-
507
- * Call `AR::Base.connection_db_config` on Rails 6.1+ in `rodauth:install` generator (@janko)
508
-
509
- ## 0.4.1 (2020-11-02)
510
-
511
- * Don't generate `RodauthController` in API-only mode (@janko)
512
-
513
- * Pass `test: false` to Sequel in the `sequel.rb` initializer (@janko)
514
-
515
- ## 0.4.0 (2020-11-02)
516
-
517
- * Support Rails API-only mode (@janko)
518
-
519
- * Make `rodauth:install` create `rodauth_app.rb` in `app/lib/` directory (@janko)
520
-
521
- ## 0.3.1 (2020-10-25)
522
-
523
- * Depend on sequel-activerecord_connection 1.0+ (@janko)
524
-
525
- ## 0.3.0 (2020-09-18)
526
-
527
- * Handle custom configured database migration paths in install generator (@janko)
528
-
529
- * Allow specifying features as plain arguments in `rodauth:views` generator (@janko)
530
-
531
- * Add some missing foreign key constraints in generated migration file (@janko)
532
-
533
- ## 0.2.1 (2020-07-26)
534
-
535
- * Fix incorrect JDBC connect syntax in `sequel.rb` template on JRuby (@janko)
536
-
537
- ## 0.2.0 (2020-07-26)
538
-
539
- * Drop support for Rodauth 1.x (@janko)
540
-
541
- * Change `rodauth_app.rb` template to send emails in the background after transaction commit (@janko)
542
-
543
- * Bump `sequel-activerecord_connection` dependency to `~> 0.3` (@janko)
544
-
545
- * Use the JDBC adapter in sequel.rb initializer when on JRuby (@janko)
546
-
547
- ## 0.1.3 (2020-07-04)
548
-
549
- * Remove insecure MFA integration with remember feature suggestion in `lib/rodauth_app.rb` (@janko, @nicolas-besnard)
550
-
551
- * Use correct password autocomplete value on Rodauth 2.1+ (@janko)
552
-
553
- * Enable skipping CSRF protection on Rodauth 2.1+ by overriding `#check_csrf?` (@janko)
554
-
555
- * Don't generate Sequel initializer if Sequel connection exists (@janko)
556
-
557
- * Fix typo in remember view template (@nicolas-besnard)
558
-
559
- * Fix some more typos in `lib/rodauth_app.rb` (@janko)
560
-
561
- ## 0.1.2 (2020-05-14)
562
-
563
- * Fix some typos in comment suggestions in `lib/rodauth_app.rb` (@janko)
564
-
565
- ## 0.1.1 (2020-05-09)
566
-
567
- * Include view templates in the gem (@janko)
568
- * Use `Login` labels to be consistent with Rodauth (@janko)