omniauth-identity 3.0.9 → 3.1.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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data/CHANGELOG.md +109 -54
- data/LICENSE +3 -3
- data/README.md +239 -88
- data/lib/omniauth/identity/model.rb +19 -17
- data/lib/omniauth/identity/models/active_record.rb +4 -3
- data/lib/omniauth/identity/models/couch_potato.rb +6 -5
- data/lib/omniauth/identity/models/mongoid.rb +5 -4
- data/lib/omniauth/identity/models/nobrainer.rb +5 -4
- data/lib/omniauth/identity/models/sequel.rb +28 -15
- data/lib/omniauth/identity/secure_password.rb +51 -24
- data/lib/{omniauth-identity → omniauth/identity}/version.rb +3 -1
- data/lib/omniauth/identity.rb +25 -9
- data/lib/omniauth/strategies/identity.rb +25 -28
- data/lib/omniauth-identity.rb +13 -2
- data.tar.gz.sig +0 -0
- metadata +121 -38
- metadata.gz.sig +0 -0
- data/spec/omniauth/identity/model_spec.rb +0 -44
- data/spec/omniauth/identity/models/active_record_spec.rb +0 -40
- data/spec/omniauth/identity/models/sequel_spec.rb +0 -39
- data/spec/omniauth/identity/secure_password_spec.rb +0 -27
- data/spec/omniauth/strategies/identity_spec.rb +0 -373
- data/spec/spec_helper.rb +0 -40
- data/spec/support/shared_contexts/instance_with_instance_methods.rb +0 -89
- data/spec/support/shared_contexts/model_with_class_methods.rb +0 -29
- data/spec/support/shared_contexts/persistable_model.rb +0 -24
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c1fef55868658b676a13cae194b98acdc6291e95d1ea0cd0aff002c6e4aa0879
|
4
|
+
data.tar.gz: 74b6a02f15f381225dfa00c72693f862297aacb06195b6bb9e14365cc855377c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ac2fbae9d13daf604eb9faa346456e27f1498b71452a8623376e54069a56f2c86d4e0441cb9d23ec0e9c9479baf51603212b52f6a899f4ef25076a39264fca3a
|
7
|
+
data.tar.gz: 9e4b925767c8d41354843471122ffd21d8ba2a794a45c185c214cdee797a5e75f74b76b2df02c8f86d3685d6ca8d90236253421e8b112aa7b77245472b1c63cd
|
checksums.yaml.gz.sig
ADDED
Binary file
|
data/CHANGELOG.md
CHANGED
@@ -1,35 +1,56 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
-
All notable changes to this project will be documented in this file.
|
3
|
+
All notable changes to this project since v2.0 will be documented in this file.
|
4
4
|
|
5
|
-
|
6
|
-
|
7
|
-
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
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).
|
8
7
|
|
9
8
|
## [Unreleased]
|
10
|
-
|
11
|
-
|
12
|
-
|
9
|
+
### Added
|
10
|
+
### Changed
|
13
11
|
### Fixed
|
12
|
+
### Removed
|
14
13
|
|
14
|
+
## [3.1.0] - 2024-11-18 ([tag][3.1.0t])
|
15
|
+
- COVERAGE: 91.98% -- 344/374 lines in 15 files
|
16
|
+
- BRANCH COVERAGE: 80.26% -- 61/76 branches in 15 files
|
17
|
+
- 44.44% documented
|
18
|
+
### Added
|
19
|
+
- [PR #123][123] Improve readability in #identity method of OmniAuth::Strategies::Identity by @Xeragus
|
20
|
+
- [PR #124][124] Modernized gem structure, and updated dependencies for development by @pboling
|
21
|
+
- Gem releases are now cryptographically signed
|
22
|
+
- All ORM adapters (except NoBrainer) are tested in CI
|
23
|
+
- [PR #127][127] Improved documentation by @pboling
|
24
|
+
- [PR #128][128] Instructions for contributing by @pboling
|
25
|
+
### Changed
|
26
|
+
- Deprecate `require 'omniauth/identity'` by @pboling
|
27
|
+
- in favor of `require 'omniauth-identity'` (matching the gem name)
|
28
|
+
### Fixed
|
29
|
+
- [PR #120][120] Fix: handling of SCRIPT_NAME for registration_path by @btalbot
|
30
|
+
- [PR #122][122] Compatibility with rack v3.1+: use `req.params[]` instead of `req[]` by @emon
|
31
|
+
- See: https://github.com/rack/rack/pull/2183
|
32
|
+
|
33
|
+
[128]: https://github.com/omniauth/omniauth-identity/pull/128
|
34
|
+
[127]: https://github.com/omniauth/omniauth-identity/pull/127
|
35
|
+
[124]: https://github.com/omniauth/omniauth-identity/pull/124
|
36
|
+
[123]: https://github.com/omniauth/omniauth-identity/pull/123
|
37
|
+
[122]: https://github.com/omniauth/omniauth-identity/pull/122
|
38
|
+
[120]: https://github.com/omniauth/omniauth-identity/pull/120
|
39
|
+
|
40
|
+
## [3.0.9] - 2021-06-16 ([tag][3.0.9t])
|
41
|
+
### Fixed
|
15
42
|
- \[Sequel\] Fixes loading the Sequel adapter, issue reported as [#112](https://github.com/omniauth/omniauth-identity/issues/112)
|
16
|
-
|
17
43
|
### Added
|
18
|
-
|
19
44
|
- 📝 Document the Database adapters and drivers the gem currently works with
|
20
45
|
|
21
|
-
## [3.0.8] - 2021-03-24
|
22
|
-
|
46
|
+
## [3.0.8] - 2021-03-24 ([tag][3.0.8t])
|
23
47
|
### Fixed
|
24
|
-
|
25
48
|
- \[Model\] Fixes 2 issues raised in a comment on PR [#108](https://github.com/omniauth/omniauth-identity/pull/108#issuecomment-804456604)
|
26
49
|
- When `options[:on_validation]` is set `new`/`save`/`persisted?` logic is used.
|
27
50
|
- When `options[:on_validation]` is not set `create`/`persisted?` logic is used.
|
28
51
|
|
29
|
-
## [3.0.7] - 2021-03-23
|
30
|
-
|
52
|
+
## [3.0.7] - 2021-03-23 ([tag][3.0.7t])
|
31
53
|
### Fixed
|
32
|
-
|
33
54
|
- \[ActiveRecord\] Fixed [#110](https://github.com/omniauth/omniauth-identity/issues/110) which prevented `OmniAuth::Identity::Models::ActiveRecord`-based records from saving.
|
34
55
|
- \[CouchPotato\] Fixed `OmniAuth::Identity::Models::CouchPotato`'s `#save`.
|
35
56
|
- \[Sequel\] Fixed `OmniAuth::Identity::Models::Sequel`'s `#save`.
|
@@ -37,15 +58,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
37
58
|
- \[Model\] Restore original `info` functionality which set `name` based on `first_name`, `last_name`, or `nickname`
|
38
59
|
|
39
60
|
### Changed
|
40
|
-
|
41
61
|
- 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)
|
42
62
|
- Aeons ago the original was ripped from Rails 3.1, and frozen in time.
|
43
63
|
While writing specs, it was discovered to be incompatible with this gem's Sequel adapter.
|
44
64
|
- Specs validate that the new version does work.
|
45
65
|
In any case, the ripped version is only used when the `has_secure_password` macro is not yet defined in the class.
|
46
|
-
|
47
66
|
### Added
|
48
|
-
|
49
67
|
- New specs to cover real use cases and implementations of each ORM model adapter that ships with the gem:
|
50
68
|
- ActiveRecord (Polyglot - Many Relational Databases)
|
51
69
|
- Sequel (Polyglot - Many Relational Databases)
|
@@ -53,14 +71,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
53
71
|
- Mongoid (MongoDB)
|
54
72
|
- NoBrainer (RethinkDB)
|
55
73
|
|
56
|
-
## [3.0.6] - 2021-03-20
|
57
|
-
|
74
|
+
## [3.0.6] - 2021-03-20 ([tag][3.0.6t])
|
58
75
|
### Fixed
|
59
|
-
|
60
76
|
- Fix breaking changes introduced by [#108](https://github.com/omniauth/omniauth-identity/pull/108) which prevented `:on_validation` from firing
|
61
|
-
|
62
77
|
### Added
|
63
|
-
|
64
78
|
- New (or finally documented) options:
|
65
79
|
- `:create_identity_link_text` defaults to `'Create an Identity'`
|
66
80
|
- `:registration_failure_message` defaults to `'One or more fields were invalid'`
|
@@ -68,58 +82,42 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
68
82
|
- `:title` defaults to `'Identity Verification'`
|
69
83
|
- `:registration_form_title` defaults to `'Register Identity'`
|
70
84
|
|
71
|
-
## [3.0.5] - 2021-03-19
|
72
|
-
|
85
|
+
## [3.0.5] - 2021-03-19 ([tag][3.0.5t])
|
73
86
|
### Fixed
|
74
|
-
|
75
87
|
- Fix breaking changes introduced by [#86's](https://github.com/omniauth/omniauth-identity/pull/86) introduction of `:on_validation`
|
76
|
-
|
77
88
|
### Added
|
78
|
-
|
79
89
|
- Define `#save`, `#persisted?` and `::create` on `Omniauth::Identity::Model`
|
80
90
|
- Add `@since` YARD tags to interface methods
|
81
91
|
- Refactor `Omniauth::Strategies::Identity.registration_phase` to support `Omniauth::Identity::Model`-inheriting classes that do not define `#save`.
|
82
92
|
- This support will be dropped in v4.0.
|
83
93
|
|
84
|
-
## [3.0.4] - 2021-02-14
|
85
|
-
|
94
|
+
## [3.0.4] - 2021-02-14 ([tag][3.0.4t])
|
86
95
|
### Added
|
87
|
-
|
88
96
|
- Add support for [sequel ORM](http://sequel.jeremyevans.net/)
|
89
97
|
|
90
|
-
## [3.0.3] - 2021-02-14
|
91
|
-
|
98
|
+
## [3.0.3] - 2021-02-14 ([tag][3.0.3t])
|
92
99
|
### Added
|
93
|
-
|
94
100
|
- Add option `:on_validation`, which can be used to add a Captcha
|
95
101
|
- See [example here](https://github.com/omniauth/omniauth-identity/pull/86#issue-63225122)
|
96
102
|
- Add support for nobrainer, an ORM for RethinkDB
|
97
103
|
- Validation error message on invalid registration form submission
|
98
|
-
|
99
104
|
### Removed
|
100
|
-
|
101
105
|
- ruby-head build... simply too slow
|
102
106
|
|
103
|
-
## [3.0.2] - 2021-02-14
|
104
|
-
|
107
|
+
## [3.0.2] - 2021-02-14 ([tag][3.0.2t])
|
105
108
|
### Fixed
|
106
|
-
|
107
109
|
- Github Actions CI Build for Ruby 2.4, 3.0 and ruby-head
|
108
110
|
- Updated copyright
|
109
111
|
- Code style cleanup
|
110
112
|
- Added Code Climate "Quality"
|
111
113
|
- Updated Readme
|
112
114
|
|
113
|
-
## [3.0.1] - 2021-02-14
|
114
|
-
|
115
|
+
## [3.0.1] - 2021-02-14 ([tag][3.0.1t])
|
115
116
|
### Fixed
|
116
|
-
|
117
117
|
- Github Actions CI Build for various Rubies
|
118
118
|
|
119
|
-
## [3.0] - 2021-02-13
|
120
|
-
|
119
|
+
## [3.0.0] - 2021-02-13 ([tag][3.0.0t])
|
121
120
|
### Added
|
122
|
-
|
123
121
|
- Compatibility with Ruby 3
|
124
122
|
- Add option `:enable_login` to bypass OmniAuth disabling of GET method (default `true`)
|
125
123
|
- NOTE: This restores compatibility between this gem and the current, core, omniauth gem!
|
@@ -130,22 +128,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
130
128
|
- Minimum Ruby version = 2.4
|
131
129
|
- Automatically adds "provider" => "identity" when "provider" column is detected
|
132
130
|
- Documentation in README.md
|
133
|
-
|
134
131
|
### Removed
|
135
|
-
|
136
132
|
- Support for Rubies < 2.4
|
137
133
|
- Support for DataMapper, which died long ago.
|
138
134
|
- Unwanted git artifacts
|
139
135
|
|
140
|
-
## [2.0] - 2020-09-01
|
141
|
-
|
136
|
+
## [2.0.0] - 2020-09-01 ([tag][2.0.0t])
|
142
137
|
### Added
|
143
|
-
|
144
138
|
- CHANGELOG to maintain a history of changes.
|
145
139
|
- Include mongoid-rspec gem.
|
146
|
-
|
147
140
|
### Changed
|
148
|
-
|
149
141
|
- Fix failing Specs
|
150
142
|
- Update Spec syntax to RSpec 3
|
151
143
|
- Fix deprecation Warnings
|
@@ -154,7 +146,70 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
154
146
|
- 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+)
|
155
147
|
- Updated copyright information.
|
156
148
|
- Updated MongoMapper section of README to reflect its discontinued support.
|
157
|
-
|
158
149
|
### Removed
|
159
150
|
- Gemfile.lock file
|
160
|
-
- MongoMapper support; unable to satisfy dependencies of both MongoMapper and
|
151
|
+
- MongoMapper support; unable to satisfy dependencies of both MongoMapper and Mongoid now that MongoMapper is no longer actively maintained.
|
152
|
+
|
153
|
+
[Unreleased]: https://github.com/omniauth/omniauth-identity/compare/v3.1.0...HEAD
|
154
|
+
[3.1.0]: https://github.com/omniauth/omniauth-identity/compare/v3.0.9...v3.1.0
|
155
|
+
[3.1.0t]: https://github.com/omniauth/omniauth-identity/tags/v3.1.0
|
156
|
+
[3.0.9]: https://github.com/omniauth/omniauth-identity/compare/v3.0.8...v3.0.9
|
157
|
+
[3.0.9t]: https://github.com/omniauth/omniauth-identity/tags/v3.0.9
|
158
|
+
[3.0.8]: https://github.com/omniauth/omniauth-identity/compare/v3.0.7...v3.0.8
|
159
|
+
[3.0.8t]: https://github.com/omniauth/omniauth-identity/tags/v3.0.8
|
160
|
+
[3.0.7]: https://github.com/omniauth/omniauth-identity/compare/v3.0.6...v3.0.7
|
161
|
+
[3.0.7t]: https://github.com/omniauth/omniauth-identity/tags/v3.0.7
|
162
|
+
[3.0.6]: https://github.com/omniauth/omniauth-identity/compare/v3.0.5...v3.0.6
|
163
|
+
[3.0.6t]: https://github.com/omniauth/omniauth-identity/tags/v3.0.6
|
164
|
+
[3.0.5]: https://github.com/omniauth/omniauth-identity/compare/v3.0.4...v3.0.5
|
165
|
+
[3.0.5t]: https://github.com/omniauth/omniauth-identity/tags/v3.0.5
|
166
|
+
[3.0.4]: https://github.com/omniauth/omniauth-identity/compare/v3.0.3...v3.0.4
|
167
|
+
[3.0.4t]: https://github.com/omniauth/omniauth-identity/tags/v3.0.4
|
168
|
+
[3.0.3]: https://github.com/omniauth/omniauth-identity/compare/v3.0.2...v3.0.3
|
169
|
+
[3.0.3t]: https://github.com/omniauth/omniauth-identity/tags/v3.0.3
|
170
|
+
[3.0.2]: https://github.com/omniauth/omniauth-identity/compare/v3.0.1...v3.0.2
|
171
|
+
[3.0.2t]: https://github.com/omniauth/omniauth-identity/tags/v3.0.2
|
172
|
+
[3.0.1]: https://github.com/omniauth/omniauth-identity/compare/v3.0.0...v3.0.1
|
173
|
+
[3.0.1t]: https://github.com/omniauth/omniauth-identity/tags/v3.0.1
|
174
|
+
[3.0.0]: https://github.com/omniauth/omniauth-identity/compare/v2.0.0...v3.0.0
|
175
|
+
[3.0.0t]: https://github.com/omniauth/omniauth-identity/tags/v3.0.0
|
176
|
+
[2.0.0]: https://github.com/omniauth/omniauth-identity/compare/v1.1.1...v2.0.0
|
177
|
+
[2.0.0t]: https://github.com/omniauth/omniauth-identity/tags/v2.0.0
|
178
|
+
[1.1.1]: https://github.com/omniauth/omniauth-identity/compare/v1.1.0...v1.1.1
|
179
|
+
[1.1.1t]: https://github.com/omniauth/omniauth-identity/tags/v1.1.1
|
180
|
+
[1.1.0]: https://github.com/omniauth/omniauth-identity/compare/v1.0.0...v1.1.0
|
181
|
+
[1.1.0t]: https://github.com/omniauth/omniauth-identity/tags/v1.0.0
|
182
|
+
[1.0.0]: https://github.com/omniauth/omniauth-identity/compare/v0.3.0...v1.0.0
|
183
|
+
[1.0.0t]: https://github.com/omniauth/omniauth-identity/tags/v1.0.0
|
184
|
+
[0.3.0]: https://github.com/omniauth/omniauth-identity/compare/v0.2.6...v0.3.0
|
185
|
+
[0.3.0t]: https://github.com/omniauth/omniauth-identity/tags/v0.3.0
|
186
|
+
[0.2.6]: https://github.com/omniauth/omniauth-identity/compare/v0.2.5...v0.2.6
|
187
|
+
[0.2.6t]: https://github.com/omniauth/omniauth-identity/tags/v0.2.6
|
188
|
+
[0.2.5]: https://github.com/omniauth/omniauth-identity/compare/v0.2.4...v0.2.5
|
189
|
+
[0.2.5t]: https://github.com/omniauth/omniauth-identity/tags/v0.2.5
|
190
|
+
[0.2.4]: https://github.com/omniauth/omniauth-identity/compare/v0.2.3...v0.2.4
|
191
|
+
[0.2.4t]: https://github.com/omniauth/omniauth-identity/tags/v0.2.5
|
192
|
+
[0.2.3]: https://github.com/omniauth/omniauth-identity/compare/v0.2.2...v0.2.3
|
193
|
+
[0.2.3t]: https://github.com/omniauth/omniauth-identity/tags/v0.2.3
|
194
|
+
[0.2.2]: https://github.com/omniauth/omniauth-identity/compare/v0.2.1...v0.2.2
|
195
|
+
[0.2.2t]: https://github.com/omniauth/omniauth-identity/tags/v0.2.2
|
196
|
+
[0.2.1]: https://github.com/omniauth/omniauth-identity/compare/v0.2.0...v0.2.1
|
197
|
+
[0.2.1t]: https://github.com/omniauth/omniauth-identity/tags/v0.2.1
|
198
|
+
[0.2.0]: https://github.com/omniauth/omniauth-identity/compare/v0.1.6...v0.2.0
|
199
|
+
[0.2.0t]: https://github.com/omniauth/omniauth-identity/tags/v0.2.0
|
200
|
+
[0.1.6]: https://github.com/omniauth/omniauth-identity/compare/v0.1.5...v0.1.6
|
201
|
+
[0.1.6t]: https://github.com/omniauth/omniauth-identity/tags/v0.1.6
|
202
|
+
[0.1.5]: https://github.com/omniauth/omniauth-identity/compare/v0.1.4...v0.1.5
|
203
|
+
[0.1.5t]: https://github.com/omniauth/omniauth-identity/tags/v0.1.5
|
204
|
+
[0.1.4]: https://github.com/omniauth/omniauth-identity/compare/v0.1.3...v0.1.4
|
205
|
+
[0.1.4t]: https://github.com/omniauth/omniauth-identity/tags/v0.1.4
|
206
|
+
[0.1.3]: https://github.com/omniauth/omniauth-identity/compare/v0.1.1...v0.1.3
|
207
|
+
[0.1.3t]: https://github.com/omniauth/omniauth-identity/tags/v0.1.3
|
208
|
+
[0.1.1]: https://github.com/omniauth/omniauth-identity/compare/v0.0.4...v0.1.1
|
209
|
+
[0.1.1t]: https://github.com/omniauth/omniauth-identity/tags/v0.1.1
|
210
|
+
[0.0.4]: https://github.com/omniauth/omniauth-identity/compare/v0.0.3...v0.0.4
|
211
|
+
[0.0.4t]: https://github.com/omniauth/omniauth-identity/tags/v0.0.4
|
212
|
+
[0.0.3]: https://github.com/omniauth/omniauth-identity/compare/v0.0.1...v0.0.3
|
213
|
+
[0.0.3t]: https://github.com/omniauth/omniauth-identity/tags/v0.0.3
|
214
|
+
[0.0.1]: https://github.com/omniauth/omniauth-identity/compare/be7b50aafea590caae6dc9dce550a96b997773cd...v0.0.1
|
215
|
+
[0.0.1t]: https://github.com/omniauth/omniauth-identity/tags/v0.0.1
|
data/LICENSE
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
Copyright (c) 2021 OmniAuth-Identity Maintainers
|
2
|
-
Copyright (c) 2020 Peter Boling, Andrew Roberts, and Jellybooks Ltd.
|
3
|
-
Copyright (c) 2010-2015 Michael Bleigh and Intridea, Inc.
|
1
|
+
Copyright (c) 2021, 2024 Peter H. Boling, and OmniAuth-Identity Maintainers
|
2
|
+
Copyright (c) 2020 Peter H. Boling, Andrew Roberts, and Jellybooks Ltd.
|
3
|
+
Copyright (c) 2010-2015 Michael Bleigh, and Intridea, Inc.
|
4
4
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining
|
6
6
|
a copy of this software and associated documentation files (the
|