omniauth-identity 3.1.4 → 3.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1299ed56a1450bd936c5b4f7345901c81d3e485cd2191b778074c058344c4d51
4
- data.tar.gz: 8b82be0d7c38e24fa01f5741d184c9e27fa6b842d863dc2912b6b6e3a1ac2b6a
3
+ metadata.gz: 8f528159624b770ade56aa4237743e051de3a4f3563644987aaa94f93e20afcf
4
+ data.tar.gz: f598bd8e275ebdf6ff6dc8b715aa5902fda8fa96f10c5b9105215a148451a34a
5
5
  SHA512:
6
- metadata.gz: a0b274d8ab8950e144fef290d150b294ffe5984764ae25d04b90458e3d44a605e0328141cf00fd09e5b4e295aadeb186f2f3386515997e6f1c8f5eae9de40aeb
7
- data.tar.gz: cd20cf2c660f0592b9926fc3deac8f7d87e50f37c57393301f57a093988567b4063df04f6b677b7ba06fd3a562fa46328917097ee7962247f950ccd182560cb8
6
+ metadata.gz: 84348f43f60496db4c3f670c078ed29408a91d8117bd80ca67a5a7b14470ab5795bdabaa029c183dc04bfe1eedd541d5348d0363fbc0f2942db02db9514eeacc
7
+ data.tar.gz: 199805e82eb1ae2d50e819c47a54834ada88374fea175a7c99e319a099e862c67efec9946748ce860e5b205cf403133e8fcb0cc14be135082a0a96bf36ea6514
checksums.yaml.gz.sig CHANGED
Binary file
data/CHANGELOG.md CHANGED
@@ -1,56 +1,135 @@
1
1
  # Changelog
2
2
 
3
- All notable changes to this project since v2.0 will be documented in this file.
3
+ [![SemVer 2.0.0][📌semver-img]][📌semver] [![Keep-A-Changelog 1.0.0][📗keep-changelog-img]][📗keep-changelog]
4
4
 
5
- The format is based on [Keep a Changelog v1](https://keepachangelog.com/en/1.0.0/),
6
- and this project adheres to [Semantic Versioning v2](https://semver.org/spec/v2.0.0.html).
5
+ All notable changes to this project will be documented in this file.
6
+
7
+ The format is based on [Keep a Changelog][📗keep-changelog],
8
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html),
9
+ and [yes][📌major-versions-not-sacred], platform and engine support are part of the [public API][📌semver-breaking].
10
+ Please file a bug if you notice a violation of semantic versioning.
11
+
12
+ [📌semver]: https://semver.org/spec/v2.0.0.html
13
+ [📌semver-img]: https://img.shields.io/badge/semver-2.0.0-FFDD67.svg?style=flat
14
+ [📌semver-breaking]: https://github.com/semver/semver/issues/716#issuecomment-869336139
15
+ [📌major-versions-not-sacred]: https://tom.preston-werner.com/2022/05/23/major-version-numbers-are-not-sacred.html
16
+ [📗keep-changelog]: https://keepachangelog.com/en/1.0.0/
17
+ [📗keep-changelog-img]: https://img.shields.io/badge/keep--a--changelog-1.0.0-FFDD67.svg?style=flat
7
18
 
8
19
  ## [Unreleased]
20
+
9
21
  ### Added
22
+
10
23
  ### Changed
24
+
11
25
  ### Deprecated
26
+
12
27
  ### Removed
28
+
13
29
  ### Fixed
30
+
31
+ - Restored ORM-specific spec rake tasks and made optional ORM spec files avoid
32
+ loading unavailable adapter gems when the matching appraisal does not include them.
33
+
14
34
  ### Security
15
35
 
36
+ ## [3.2.0] - 2026-06-05
37
+
38
+ - TAG: [v3.2.0][3.2.0t]
39
+ - COVERAGE: 94.21% -- 374/397 lines in 12 files
40
+ - BRANCH COVERAGE: 81.82% -- 90/110 branches in 12 files
41
+ - 81.82% documented
42
+
43
+ ### Added
44
+
45
+ - Added `OmniAuth::Identity::VERSION` as the traditional public version
46
+ constant, in addition to `OmniAuth::Identity::Version::VERSION`.
47
+
48
+ ### Changed
49
+
50
+ - Refreshed generated package metadata, support documentation, CI workflows,
51
+ and development dependency floors from the current kettle-jem template.
52
+ - Made identity model and secure password configuration accessors synchronized
53
+ so concurrent callers do not race while reading or updating authentication
54
+ keys, ROM adapter settings, or BCrypt minimum-cost mode.
55
+
56
+ ### Fixed
57
+
58
+ - Made local `kettle-test` runs skip CouchDB, MongoDB, and RethinkDB adapter
59
+ specs by default unless the matching service adapter environment variable is enabled.
60
+ - Updated ORM adapter specs to exercise concrete ActiveRecord and Mongoid model classes.
61
+
62
+ ### Security
63
+
64
+ - Added `auth-sanitizer` integration so identity model `#inspect` output
65
+ filters password-related attributes by default.
66
+
67
+ ## [3.1.5] - 2025-10-13
68
+
69
+ - TAG: [v3.1.5][3.1.5t]
70
+ - COVERAGE: 93.58% -- 437/467 lines in 14 files
71
+ - BRANCH COVERAGE: 81.00% -- 81/100 branches in 14 files
72
+ - 92.39% documented
73
+
74
+ ### Added
75
+
76
+ - Adapter support for Hanami and ROM
77
+ - Complete YARD documentation
78
+ - kettle-dev for easier maintenance & dev tooling
79
+
16
80
  ## [3.1.4] - 2025-07-28
81
+
17
82
  - TAG: [v3.1.4][3.1.4t]
18
83
  - COVERAGE: 92.06% -- 348/378 lines in 15 files
19
84
  - BRANCH COVERAGE: 79.49% -- 62/78 branches in 15 files
20
85
  - 44.44% documented
86
+
21
87
  # Added
88
+
22
89
  - More documentation
23
90
  - Tracking maintainability and coverage with QLTY.sh
24
91
  - Documentation site
25
92
  - https://omniauth-identity.galtzo.com
26
93
  - Test against bson v5.1.1
27
94
  - Test against locked and unlocked, runtime and development, dependencies
95
+
28
96
  ### Changed
97
+
29
98
  - gemspec metadata
30
99
  - Test against latest bundler
31
100
  - Develop on ruby@3.4.5
32
101
  - Switch to [Appraisal2](https://github.com/appraisal-rb/appraisal2)
33
102
 
34
103
  ## [3.1.3] - 2025-06-08
104
+
35
105
  - TAG: [v3.1.3][3.1.3t]
36
106
  - COVERAGE: 92.06% -- 348/378 lines in 15 files
37
107
  - BRANCH COVERAGE: 79.49% -- 62/78 branches in 15 files
38
108
  - 44.44% documented
109
+
39
110
  ### Added
111
+
40
112
  - More documentation by @pboling
41
113
  - Expanded test suite, covering many more points of the dependency matrix by @pboling
42
114
  - Test workflows with latest dependencies and more platform and dep HEADs
115
+
43
116
  ### Changed
117
+
44
118
  - Updated Code of Conduct to Contributor Covenant v2.1
119
+
45
120
  ### Fixed
121
+
46
122
  - Set `SKIP_GEM_SIGNING` in env to allow `gem build` without cryptographic signing requirement by @pboling
47
123
  - Useful for linux distros whose package managers sign packages independently
48
124
 
49
125
  ## [3.1.2] - 2025-05-07
126
+
50
127
  - TAG: [v3.1.2][3.1.2t]
51
128
  - COVERAGE: 92.02% -- 346/376 lines in 15 files
52
129
  - BRANCH COVERAGE: 79.49% -- 62/78 branches in 15 files
130
+
53
131
  ### Added
132
+
54
133
  - 20 year signing cert expires 2045-04-29 by @pboling
55
134
  - Added CITATION.cff by @pboling
56
135
  - devcontainer for easier maintenance by @pboling
@@ -58,38 +137,52 @@ and this project adheres to [Semantic Versioning v2](https://semver.org/spec/v2.
58
137
  - Greatly improved spec suite and CI config by @pboling
59
138
  - Testing against JRuby 9.2, 9.3, 9.4, 10.0, and head
60
139
  - Testing against many more combinations of Databases, ORMs, Rails, and Ruby versions
140
+
61
141
  ### Changed
142
+
62
143
  - Upgraded Code of Conduct based on Contributor Covenant v2.1 by @pboling
63
144
 
64
145
  ## [3.1.1] - 2024-11-18
146
+
65
147
  - TAG: [v3.1.1][3.1.1t]
66
148
  - COVERAGE: 92.00% -- 345/375 lines in 15 files
67
149
  - BRANCH COVERAGE: 80.26% -- 61/76 branches in 15 files
68
150
  - 44.44% documented
151
+
69
152
  ### Added
153
+
70
154
  - [PR 130][130] Add SECURITY.md policy by @pboling
71
155
  - [PR 130][130] Add Maintainer contact email by @pboling
156
+
72
157
  ### Changed
158
+
73
159
  - [PR 130][130] Require MFA to publish to RubyGems.org by @pboling
74
160
 
75
161
  [130]: https://github.com/omniauth/omniauth-identity/pull/130
76
162
 
77
163
  ## [3.1.0] - 2024-11-18
164
+
78
165
  - TAG: [v3.1.0][3.1.0t]
79
166
  - COVERAGE: 91.98% -- 344/374 lines in 15 files
80
167
  - BRANCH COVERAGE: 80.26% -- 61/76 branches in 15 files
81
168
  - 44.44% documented
169
+
82
170
  ### Added
171
+
83
172
  - [PR #123][123] Improve readability in #identity method of OmniAuth::Strategies::Identity by @Xeragus
84
173
  - [PR #124][124] Modernized gem structure, and updated dependencies for development by @pboling
85
174
  - Gem releases are now cryptographically signed
86
175
  - All ORM adapters (except NoBrainer) are tested in CI
87
176
  - [PR #127][127] Improved documentation by @pboling
88
177
  - [PR #128][128] Instructions for contributing by @pboling
178
+
89
179
  ### Changed
180
+
90
181
  - Deprecate `require 'omniauth/identity'` by @pboling
91
182
  - in favor of `require 'omniauth-identity'` (matching the gem name)
183
+
92
184
  ### Fixed
185
+
93
186
  - [PR #120][120] Fix: handling of SCRIPT_NAME for registration_path by @btalbot
94
187
  - [PR #122][122] Compatibility with rack v3.1+: use `req.params[]` instead of `req[]` by @emon
95
188
  - See: https://github.com/rack/rack/pull/2183
@@ -102,34 +195,49 @@ and this project adheres to [Semantic Versioning v2](https://semver.org/spec/v2.
102
195
  [120]: https://github.com/omniauth/omniauth-identity/pull/120
103
196
 
104
197
  ## [3.0.9] - 2021-06-16
198
+
105
199
  - TAG: [v3.0.9][3.0.9t]
200
+
106
201
  ### Fixed
202
+
107
203
  - \[Sequel\] Fixes loading the Sequel adapter, issue reported as [#112](https://github.com/omniauth/omniauth-identity/issues/112)
204
+
108
205
  ### Added
206
+
109
207
  - 📝 Document the Database adapters and drivers the gem currently works with
110
208
 
111
209
  ## [3.0.8] - 2021-03-24
210
+
112
211
  - TAG: [v3.0.8][3.0.8t]
212
+
113
213
  ### Fixed
214
+
114
215
  - \[Model\] Fixes 2 issues raised in a comment on PR [#108](https://github.com/omniauth/omniauth-identity/pull/108#issuecomment-804456604)
115
216
  - When `options[:on_validation]` is set `new`/`save`/`persisted?` logic is used.
116
217
  - When `options[:on_validation]` is not set `create`/`persisted?` logic is used.
117
218
 
118
219
  ## [3.0.7] - 2021-03-23
220
+
119
221
  - TAG: [v3.0.7][3.0.7t]
222
+
120
223
  ### Fixed
224
+
121
225
  - \[ActiveRecord\] Fixed [#110](https://github.com/omniauth/omniauth-identity/issues/110) which prevented `OmniAuth::Identity::Models::ActiveRecord`-based records from saving.
122
226
  - \[CouchPotato\] Fixed `OmniAuth::Identity::Models::CouchPotato`'s `#save`.
123
227
  - \[Sequel\] Fixed `OmniAuth::Identity::Models::Sequel`'s `#save`.
124
228
  - \[Model\] Only define `::create`, `#save`, and `#persisted?` when not already defined.
125
229
  - \[Model\] Restore original `info` functionality which set `name` based on `first_name`, `last_name`, or `nickname`
230
+
126
231
  ### Changed
232
+
127
233
  - Upgraded to a newer `OmniAuth::Identity::SecurePassword` ripped from [Rails 6-1-stable](https://github.com/rails/rails/blob/6-1-stable/activemodel/lib/active_model/secure_password.rb)
128
234
  - Aeons ago the original was ripped from Rails 3.1, and frozen in time.
129
235
  While writing specs, it was discovered to be incompatible with this gem's Sequel adapter.
130
236
  - Specs validate that the new version does work.
131
237
  In any case, the ripped version is only used when the `has_secure_password` macro is not yet defined in the class.
238
+
132
239
  ### Added
240
+
133
241
  - New specs to cover real use cases and implementations of each ORM model adapter that ships with the gem:
134
242
  - ActiveRecord (Polyglot - Many Relational Databases)
135
243
  - Sequel (Polyglot - Many Relational Databases)
@@ -138,10 +246,15 @@ and this project adheres to [Semantic Versioning v2](https://semver.org/spec/v2.
138
246
  - NoBrainer (RethinkDB)
139
247
 
140
248
  ## [3.0.6] - 2021-03-20
249
+
141
250
  - TAG: [v3.0.6][3.0.6t]
251
+
142
252
  ### Fixed
253
+
143
254
  - Fix breaking changes introduced by [#108](https://github.com/omniauth/omniauth-identity/pull/108) which prevented `:on_validation` from firing
255
+
144
256
  ### Added
257
+
145
258
  - New (or finally documented) options:
146
259
  - `:create_identity_link_text` defaults to `'Create an Identity'`
147
260
  - `:registration_failure_message` defaults to `'One or more fields were invalid'`
@@ -150,33 +263,49 @@ and this project adheres to [Semantic Versioning v2](https://semver.org/spec/v2.
150
263
  - `:registration_form_title` defaults to `'Register Identity'`
151
264
 
152
265
  ## [3.0.5] - 2021-03-19
266
+
153
267
  - TAG: [v3.0.5][3.0.5t]
268
+
154
269
  ### Fixed
270
+
155
271
  - Fix breaking changes introduced by [#86's](https://github.com/omniauth/omniauth-identity/pull/86) introduction of `:on_validation`
272
+
156
273
  ### Added
274
+
157
275
  - Define `#save`, `#persisted?` and `::create` on `Omniauth::Identity::Model`
158
276
  - Add `@since` YARD tags to interface methods
159
277
  - Refactor `Omniauth::Strategies::Identity.registration_phase` to support `Omniauth::Identity::Model`-inheriting classes that do not define `#save`.
160
278
  - This support will be dropped in v4.0.
161
279
 
162
280
  ## [3.0.4] - 2021-02-14
281
+
163
282
  - TAG: [v3.0.4][3.0.4t]
283
+
164
284
  ### Added
285
+
165
286
  - Add support for [sequel ORM](http://sequel.jeremyevans.net/)
166
287
 
167
288
  ## [3.0.3] - 2021-02-14
289
+
168
290
  - TAG: [v3.0.3][3.0.3t]
291
+
169
292
  ### Added
293
+
170
294
  - Add option `:on_validation`, which can be used to add a Captcha
171
295
  - See [example here](https://github.com/omniauth/omniauth-identity/pull/86#issue-63225122)
172
296
  - Add support for nobrainer, an ORM for RethinkDB
173
297
  - Validation error message on invalid registration form submission
298
+
174
299
  ### Removed
300
+
175
301
  - ruby-head build... simply too slow
176
302
 
177
303
  ## [3.0.2] - 2021-02-14
304
+
178
305
  - TAG: [v3.0.2][3.0.2t]
306
+
179
307
  ### Fixed
308
+
180
309
  - Github Actions CI Build for Ruby 2.4, 3.0 and ruby-head
181
310
  - Updated copyright
182
311
  - Code style cleanup
@@ -184,13 +313,19 @@ and this project adheres to [Semantic Versioning v2](https://semver.org/spec/v2.
184
313
  - Updated Readme
185
314
 
186
315
  ## [3.0.1] - 2021-02-14
316
+
187
317
  - TAG: [v3.0.1][3.0.1t]
318
+
188
319
  ### Fixed
320
+
189
321
  - Github Actions CI Build for various Rubies
190
322
 
191
323
  ## [3.0.0] - 2021-02-13
324
+
192
325
  - TAG: [v3.0.0][3.0.0t]
326
+
193
327
  ### Added
328
+
194
329
  - Compatibility with Ruby 3
195
330
  - Add option `:enable_login` to bypass OmniAuth disabling of GET method (default `true`)
196
331
  - NOTE: This restores compatibility between this gem and the current, core, omniauth gem!
@@ -201,17 +336,24 @@ and this project adheres to [Semantic Versioning v2](https://semver.org/spec/v2.
201
336
  - Minimum Ruby version = 2.4
202
337
  - Automatically adds "provider" => "identity" when "provider" column is detected
203
338
  - Documentation in README.md
339
+
204
340
  ### Removed
341
+
205
342
  - Support for Rubies < 2.4
206
343
  - Support for DataMapper, which died long ago.
207
344
  - Unwanted git artifacts
208
345
 
209
346
  ## [2.0.0] - 2020-09-01
347
+
210
348
  - TAG: [v2.0.0][2.0.0t]
349
+
211
350
  ### Added
351
+
212
352
  - CHANGELOG to maintain a history of changes.
213
353
  - Include mongoid-rspec gem.
354
+
214
355
  ### Changed
356
+
215
357
  - Fix failing Specs
216
358
  - Update Spec syntax to RSpec 3
217
359
  - Fix deprecation Warnings
@@ -220,11 +362,17 @@ and this project adheres to [Semantic Versioning v2](https://semver.org/spec/v2.
220
362
  - Dependency version limits so that the most up-to-date gem dependencies are used. (rspec 3+, mongo 2+, mongoid 7+, rake 13+, rack 2+, json 2+)
221
363
  - Updated copyright information.
222
364
  - Updated MongoMapper section of README to reflect its discontinued support.
365
+
223
366
  ### Removed
367
+
224
368
  - Gemfile.lock file
225
369
  - MongoMapper support; unable to satisfy dependencies of both MongoMapper and Mongoid now that MongoMapper is no longer actively maintained.
226
370
 
227
- [Unreleased]: https://github.com/omniauth/omniauth-identity/compare/v3.1.4...HEAD
371
+ [Unreleased]: https://github.com/omniauth/omniauth-identity/compare/v3.2.0...HEAD
372
+ [3.2.0]: https://github.com/omniauth/omniauth-identity/compare/v3.1.5...v3.2.0
373
+ [3.2.0t]: https://github.com/omniauth/omniauth-identity/releases/tag/v3.2.0
374
+ [3.1.5]: https://github.com/omniauth/omniauth-identity/compare/v3.1.4...v3.1.5
375
+ [3.1.5t]: https://github.com/omniauth/omniauth-identity/releases/tag/v3.1.5
228
376
  [3.1.4]: https://github.com/omniauth/omniauth-identity/compare/v3.1.3...v3.1.4
229
377
  [3.1.4t]: https://github.com/omniauth/omniauth-identity/tags/v3.1.4
230
378
  [3.1.3]: https://github.com/omniauth/omniauth-identity/compare/v3.1.2...v3.1.3
data/CITATION.cff ADDED
@@ -0,0 +1,20 @@
1
+ cff-version: 1.2.0
2
+ title: "omniauth-identity"
3
+ message: >-
4
+ If you use this work and you want to cite it,
5
+ then you can use the metadata from this file.
6
+ type: software
7
+ authors:
8
+ - given-names: "Peter H."
9
+ family-names: "Boling"
10
+ email: "floss@galtzo.com"
11
+ affiliation: "galtzo.com"
12
+ orcid: 'https://orcid.org/0009-0008-8519-441X'
13
+ identifiers:
14
+ - type: url
15
+ value: 'https://github.com/omniauth/omniauth-identity'
16
+ description: "omniauth-identity"
17
+ repository-code: 'https://github.com/omniauth/omniauth-identity'
18
+ abstract: >-
19
+ omniauth-identity
20
+ license: See license file
data/CODE_OF_CONDUCT.md CHANGED
@@ -1,4 +1,3 @@
1
-
2
1
  # Contributor Covenant Code of Conduct
3
2
 
4
3
  ## Our Pledge
@@ -61,7 +60,7 @@ representative at an online or offline event.
61
60
 
62
61
  Instances of abusive, harassing, or otherwise unacceptable behavior may be
63
62
  reported to the community leaders responsible for enforcement at
64
- [![Contact BDFL][🚂bdfl-contact-img]][🚂bdfl-contact].
63
+ [![Contact Maintainer][🚂maint-contact-img]][🚂maint-contact].
65
64
  All complaints will be reviewed and investigated promptly and fairly.
66
65
 
67
66
  All community leaders are obligated to respect the privacy and security of the
@@ -131,5 +130,5 @@ For answers to common questions about this code of conduct, see the FAQ at
131
130
  [Mozilla CoC]: https://github.com/mozilla/diversity
132
131
  [FAQ]: https://www.contributor-covenant.org/faq
133
132
  [translations]: https://www.contributor-covenant.org/translations
134
- [🚂bdfl-contact]: http://www.railsbling.com/contact
135
- [🚂bdfl-contact-img]: https://img.shields.io/badge/Contact-BDFL-0093D0.svg?style=flat&logo=rubyonrails&logoColor=red
133
+ [🚂maint-contact]: http://www.railsbling.com/contact
134
+ [🚂maint-contact-img]: https://img.shields.io/badge/Contact-Maintainer-0093D0.svg?style=flat&logo=rubyonrails&logoColor=red