omniauth-identity 3.0.8 → 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 +113 -48
- data/LICENSE +3 -3
- data/README.md +240 -79
- data/lib/omniauth/identity/model.rb +19 -17
- data/lib/omniauth/identity/models/active_record.rb +7 -3
- data/lib/omniauth/identity/models/couch_potato.rb +9 -6
- data/lib/omniauth/identity/models/mongoid.rb +7 -4
- data/lib/omniauth/identity/models/nobrainer.rb +7 -5
- data/lib/omniauth/identity/models/sequel.rb +31 -18
- 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 -39
- data/spec/omniauth/identity/models/sequel_spec.rb +0 -38
- data/spec/omniauth/identity/secure_password_spec.rb +0 -27
- data/spec/omniauth/strategies/identity_spec.rb +0 -372
- 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,25 +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]
|
9
|
+
### Added
|
10
|
+
### Changed
|
11
|
+
### Fixed
|
12
|
+
### Removed
|
10
13
|
|
11
|
-
## [3.0
|
12
|
-
|
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])
|
13
41
|
### Fixed
|
42
|
+
- \[Sequel\] Fixes loading the Sequel adapter, issue reported as [#112](https://github.com/omniauth/omniauth-identity/issues/112)
|
43
|
+
### Added
|
44
|
+
- 📝 Document the Database adapters and drivers the gem currently works with
|
14
45
|
|
46
|
+
## [3.0.8] - 2021-03-24 ([tag][3.0.8t])
|
47
|
+
### Fixed
|
15
48
|
- \[Model\] Fixes 2 issues raised in a comment on PR [#108](https://github.com/omniauth/omniauth-identity/pull/108#issuecomment-804456604)
|
16
49
|
- When `options[:on_validation]` is set `new`/`save`/`persisted?` logic is used.
|
17
50
|
- When `options[:on_validation]` is not set `create`/`persisted?` logic is used.
|
18
51
|
|
19
|
-
## [3.0.7] - 2021-03-23
|
20
|
-
|
52
|
+
## [3.0.7] - 2021-03-23 ([tag][3.0.7t])
|
21
53
|
### Fixed
|
22
|
-
|
23
54
|
- \[ActiveRecord\] Fixed [#110](https://github.com/omniauth/omniauth-identity/issues/110) which prevented `OmniAuth::Identity::Models::ActiveRecord`-based records from saving.
|
24
55
|
- \[CouchPotato\] Fixed `OmniAuth::Identity::Models::CouchPotato`'s `#save`.
|
25
56
|
- \[Sequel\] Fixed `OmniAuth::Identity::Models::Sequel`'s `#save`.
|
@@ -27,15 +58,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
27
58
|
- \[Model\] Restore original `info` functionality which set `name` based on `first_name`, `last_name`, or `nickname`
|
28
59
|
|
29
60
|
### Changed
|
30
|
-
|
31
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)
|
32
62
|
- Aeons ago the original was ripped from Rails 3.1, and frozen in time.
|
33
63
|
While writing specs, it was discovered to be incompatible with this gem's Sequel adapter.
|
34
64
|
- Specs validate that the new version does work.
|
35
65
|
In any case, the ripped version is only used when the `has_secure_password` macro is not yet defined in the class.
|
36
|
-
|
37
66
|
### Added
|
38
|
-
|
39
67
|
- New specs to cover real use cases and implementations of each ORM model adapter that ships with the gem:
|
40
68
|
- ActiveRecord (Polyglot - Many Relational Databases)
|
41
69
|
- Sequel (Polyglot - Many Relational Databases)
|
@@ -43,14 +71,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
43
71
|
- Mongoid (MongoDB)
|
44
72
|
- NoBrainer (RethinkDB)
|
45
73
|
|
46
|
-
## [3.0.6] - 2021-03-20
|
47
|
-
|
74
|
+
## [3.0.6] - 2021-03-20 ([tag][3.0.6t])
|
48
75
|
### Fixed
|
49
|
-
|
50
76
|
- Fix breaking changes introduced by [#108](https://github.com/omniauth/omniauth-identity/pull/108) which prevented `:on_validation` from firing
|
51
|
-
|
52
77
|
### Added
|
53
|
-
|
54
78
|
- New (or finally documented) options:
|
55
79
|
- `:create_identity_link_text` defaults to `'Create an Identity'`
|
56
80
|
- `:registration_failure_message` defaults to `'One or more fields were invalid'`
|
@@ -58,58 +82,42 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
58
82
|
- `:title` defaults to `'Identity Verification'`
|
59
83
|
- `:registration_form_title` defaults to `'Register Identity'`
|
60
84
|
|
61
|
-
## [3.0.5] - 2021-03-19
|
62
|
-
|
85
|
+
## [3.0.5] - 2021-03-19 ([tag][3.0.5t])
|
63
86
|
### Fixed
|
64
|
-
|
65
87
|
- Fix breaking changes introduced by [#86's](https://github.com/omniauth/omniauth-identity/pull/86) introduction of `:on_validation`
|
66
|
-
|
67
88
|
### Added
|
68
|
-
|
69
89
|
- Define `#save`, `#persisted?` and `::create` on `Omniauth::Identity::Model`
|
70
90
|
- Add `@since` YARD tags to interface methods
|
71
91
|
- Refactor `Omniauth::Strategies::Identity.registration_phase` to support `Omniauth::Identity::Model`-inheriting classes that do not define `#save`.
|
72
92
|
- This support will be dropped in v4.0.
|
73
93
|
|
74
|
-
## [3.0.4] - 2021-02-14
|
75
|
-
|
94
|
+
## [3.0.4] - 2021-02-14 ([tag][3.0.4t])
|
76
95
|
### Added
|
77
|
-
|
78
96
|
- Add support for [sequel ORM](http://sequel.jeremyevans.net/)
|
79
97
|
|
80
|
-
## [3.0.3] - 2021-02-14
|
81
|
-
|
98
|
+
## [3.0.3] - 2021-02-14 ([tag][3.0.3t])
|
82
99
|
### Added
|
83
|
-
|
84
100
|
- Add option `:on_validation`, which can be used to add a Captcha
|
85
101
|
- See [example here](https://github.com/omniauth/omniauth-identity/pull/86#issue-63225122)
|
86
102
|
- Add support for nobrainer, an ORM for RethinkDB
|
87
103
|
- Validation error message on invalid registration form submission
|
88
|
-
|
89
104
|
### Removed
|
90
|
-
|
91
105
|
- ruby-head build... simply too slow
|
92
106
|
|
93
|
-
## [3.0.2] - 2021-02-14
|
94
|
-
|
107
|
+
## [3.0.2] - 2021-02-14 ([tag][3.0.2t])
|
95
108
|
### Fixed
|
96
|
-
|
97
109
|
- Github Actions CI Build for Ruby 2.4, 3.0 and ruby-head
|
98
110
|
- Updated copyright
|
99
111
|
- Code style cleanup
|
100
112
|
- Added Code Climate "Quality"
|
101
113
|
- Updated Readme
|
102
114
|
|
103
|
-
## [3.0.1] - 2021-02-14
|
104
|
-
|
115
|
+
## [3.0.1] - 2021-02-14 ([tag][3.0.1t])
|
105
116
|
### Fixed
|
106
|
-
|
107
117
|
- Github Actions CI Build for various Rubies
|
108
118
|
|
109
|
-
## [3.0] - 2021-02-13
|
110
|
-
|
119
|
+
## [3.0.0] - 2021-02-13 ([tag][3.0.0t])
|
111
120
|
### Added
|
112
|
-
|
113
121
|
- Compatibility with Ruby 3
|
114
122
|
- Add option `:enable_login` to bypass OmniAuth disabling of GET method (default `true`)
|
115
123
|
- NOTE: This restores compatibility between this gem and the current, core, omniauth gem!
|
@@ -120,22 +128,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
120
128
|
- Minimum Ruby version = 2.4
|
121
129
|
- Automatically adds "provider" => "identity" when "provider" column is detected
|
122
130
|
- Documentation in README.md
|
123
|
-
|
124
131
|
### Removed
|
125
|
-
|
126
132
|
- Support for Rubies < 2.4
|
127
133
|
- Support for DataMapper, which died long ago.
|
128
134
|
- Unwanted git artifacts
|
129
135
|
|
130
|
-
## [2.0] - 2020-09-01
|
131
|
-
|
136
|
+
## [2.0.0] - 2020-09-01 ([tag][2.0.0t])
|
132
137
|
### Added
|
133
|
-
|
134
138
|
- CHANGELOG to maintain a history of changes.
|
135
139
|
- Include mongoid-rspec gem.
|
136
|
-
|
137
140
|
### Changed
|
138
|
-
|
139
141
|
- Fix failing Specs
|
140
142
|
- Update Spec syntax to RSpec 3
|
141
143
|
- Fix deprecation Warnings
|
@@ -144,7 +146,70 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
144
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+)
|
145
147
|
- Updated copyright information.
|
146
148
|
- Updated MongoMapper section of README to reflect its discontinued support.
|
147
|
-
|
148
149
|
### Removed
|
149
150
|
- Gemfile.lock file
|
150
|
-
- 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
|