omniauth-identity 1.0.0.rc1 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +3 -1
- data/.rspec +2 -1
- data/CHANGELOG.md +27 -0
- data/Gemfile +2 -0
- data/LICENSE +21 -0
- data/README.markdown +149 -35
- data/lib/omniauth-identity/version.rb +1 -1
- data/lib/omniauth/identity.rb +6 -5
- data/lib/omniauth/identity/model.rb +9 -8
- data/lib/omniauth/identity/models/active_record.rb +3 -3
- data/lib/omniauth/identity/models/couch_potato.rb +31 -0
- data/lib/omniauth/identity/models/data_mapper.rb +32 -0
- data/lib/omniauth/identity/models/mongoid.rb +2 -2
- data/lib/omniauth/identity/secure_password.rb +1 -1
- data/lib/omniauth/strategies/identity.rb +34 -17
- data/omniauth-identity.gemspec +16 -13
- data/spec/omniauth/identity/model_spec.rb +39 -35
- data/spec/omniauth/identity/models/active_record_spec.rb +12 -12
- data/spec/omniauth/identity/models/couch_potato_spec.rb +16 -0
- data/spec/omniauth/identity/models/data_mapper_spec.rb +24 -0
- data/spec/omniauth/identity/models/mongoid_spec.rb +14 -9
- data/spec/omniauth/identity/secure_password_spec.rb +3 -5
- data/spec/omniauth/strategies/identity_spec.rb +30 -19
- data/spec/spec_helper.rb +6 -0
- metadata +147 -69
- data/Gemfile.lock +0 -88
data/spec/spec_helper.rb
CHANGED
@@ -2,13 +2,19 @@ require 'rubygems'
|
|
2
2
|
require 'bundler'
|
3
3
|
Bundler.setup :default, :development, :test
|
4
4
|
|
5
|
+
# Third party gems to help with testing
|
5
6
|
require 'simplecov'
|
6
7
|
SimpleCov.start
|
7
8
|
|
8
9
|
require 'rack/test'
|
10
|
+
require 'mongoid-rspec'
|
11
|
+
require 'byebug'
|
12
|
+
|
13
|
+
# This gem
|
9
14
|
require 'omniauth/identity'
|
10
15
|
|
11
16
|
RSpec.configure do |config|
|
12
17
|
config.include Rack::Test::Methods
|
18
|
+
config.include Mongoid::Matchers, type: :model
|
13
19
|
end
|
14
20
|
|
metadata
CHANGED
@@ -1,138 +1,210 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniauth-identity
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
5
|
-
prerelease: 6
|
4
|
+
version: 2.0.0
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
7
|
+
- Andrew Roberts
|
8
8
|
- Michael Bleigh
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2020-09-01 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: omniauth
|
16
|
-
requirement:
|
17
|
-
none: false
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
18
17
|
requirements:
|
19
|
-
- -
|
18
|
+
- - ">="
|
20
19
|
- !ruby/object:Gem::Version
|
21
|
-
version:
|
20
|
+
version: '0'
|
22
21
|
type: :runtime
|
23
22
|
prerelease: false
|
24
|
-
version_requirements:
|
23
|
+
version_requirements: !ruby/object:Gem::Requirement
|
24
|
+
requirements:
|
25
|
+
- - ">="
|
26
|
+
- !ruby/object:Gem::Version
|
27
|
+
version: '0'
|
28
|
+
- !ruby/object:Gem::Dependency
|
29
|
+
name: bcrypt
|
30
|
+
requirement: !ruby/object:Gem::Requirement
|
31
|
+
requirements:
|
32
|
+
- - ">="
|
33
|
+
- !ruby/object:Gem::Version
|
34
|
+
version: '0'
|
35
|
+
type: :runtime
|
36
|
+
prerelease: false
|
37
|
+
version_requirements: !ruby/object:Gem::Requirement
|
38
|
+
requirements:
|
39
|
+
- - ">="
|
40
|
+
- !ruby/object:Gem::Version
|
41
|
+
version: '0'
|
25
42
|
- !ruby/object:Gem::Dependency
|
26
43
|
name: maruku
|
27
|
-
requirement:
|
28
|
-
none: false
|
44
|
+
requirement: !ruby/object:Gem::Requirement
|
29
45
|
requirements:
|
30
|
-
- -
|
46
|
+
- - ">="
|
31
47
|
- !ruby/object:Gem::Version
|
32
|
-
version: '0
|
48
|
+
version: '0'
|
33
49
|
type: :development
|
34
50
|
prerelease: false
|
35
|
-
version_requirements:
|
51
|
+
version_requirements: !ruby/object:Gem::Requirement
|
52
|
+
requirements:
|
53
|
+
- - ">="
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
version: '0'
|
36
56
|
- !ruby/object:Gem::Dependency
|
37
57
|
name: simplecov
|
38
|
-
requirement:
|
39
|
-
none: false
|
58
|
+
requirement: !ruby/object:Gem::Requirement
|
40
59
|
requirements:
|
41
|
-
- -
|
60
|
+
- - ">="
|
42
61
|
- !ruby/object:Gem::Version
|
43
|
-
version: '0
|
62
|
+
version: '0'
|
44
63
|
type: :development
|
45
64
|
prerelease: false
|
46
|
-
version_requirements:
|
65
|
+
version_requirements: !ruby/object:Gem::Requirement
|
66
|
+
requirements:
|
67
|
+
- - ">="
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '0'
|
47
70
|
- !ruby/object:Gem::Dependency
|
48
71
|
name: rack-test
|
49
|
-
requirement:
|
50
|
-
none: false
|
72
|
+
requirement: !ruby/object:Gem::Requirement
|
51
73
|
requirements:
|
52
|
-
- -
|
74
|
+
- - ">="
|
53
75
|
- !ruby/object:Gem::Version
|
54
|
-
version: '0
|
76
|
+
version: '0'
|
55
77
|
type: :development
|
56
78
|
prerelease: false
|
57
|
-
version_requirements:
|
79
|
+
version_requirements: !ruby/object:Gem::Requirement
|
80
|
+
requirements:
|
81
|
+
- - ">="
|
82
|
+
- !ruby/object:Gem::Version
|
83
|
+
version: '0'
|
58
84
|
- !ruby/object:Gem::Dependency
|
59
85
|
name: rake
|
60
|
-
requirement:
|
61
|
-
none: false
|
86
|
+
requirement: !ruby/object:Gem::Requirement
|
62
87
|
requirements:
|
63
|
-
- -
|
88
|
+
- - ">="
|
64
89
|
- !ruby/object:Gem::Version
|
65
|
-
version: '0
|
90
|
+
version: '0'
|
66
91
|
type: :development
|
67
92
|
prerelease: false
|
68
|
-
version_requirements:
|
93
|
+
version_requirements: !ruby/object:Gem::Requirement
|
94
|
+
requirements:
|
95
|
+
- - ">="
|
96
|
+
- !ruby/object:Gem::Version
|
97
|
+
version: '0'
|
69
98
|
- !ruby/object:Gem::Dependency
|
70
99
|
name: rspec
|
71
|
-
requirement:
|
72
|
-
none: false
|
100
|
+
requirement: !ruby/object:Gem::Requirement
|
73
101
|
requirements:
|
74
|
-
- - ~>
|
102
|
+
- - "~>"
|
75
103
|
- !ruby/object:Gem::Version
|
76
|
-
version: '
|
104
|
+
version: '3'
|
77
105
|
type: :development
|
78
106
|
prerelease: false
|
79
|
-
version_requirements:
|
107
|
+
version_requirements: !ruby/object:Gem::Requirement
|
108
|
+
requirements:
|
109
|
+
- - "~>"
|
110
|
+
- !ruby/object:Gem::Version
|
111
|
+
version: '3'
|
80
112
|
- !ruby/object:Gem::Dependency
|
81
|
-
name:
|
82
|
-
requirement:
|
83
|
-
none: false
|
113
|
+
name: activerecord
|
114
|
+
requirement: !ruby/object:Gem::Requirement
|
84
115
|
requirements:
|
85
|
-
- -
|
116
|
+
- - ">="
|
86
117
|
- !ruby/object:Gem::Version
|
87
|
-
version: '
|
118
|
+
version: '0'
|
88
119
|
type: :development
|
89
120
|
prerelease: false
|
90
|
-
version_requirements:
|
121
|
+
version_requirements: !ruby/object:Gem::Requirement
|
122
|
+
requirements:
|
123
|
+
- - ">="
|
124
|
+
- !ruby/object:Gem::Version
|
125
|
+
version: '0'
|
91
126
|
- !ruby/object:Gem::Dependency
|
92
|
-
name:
|
93
|
-
requirement:
|
94
|
-
none: false
|
127
|
+
name: mongoid
|
128
|
+
requirement: !ruby/object:Gem::Requirement
|
95
129
|
requirements:
|
96
|
-
- -
|
130
|
+
- - ">="
|
97
131
|
- !ruby/object:Gem::Version
|
98
|
-
version: '
|
132
|
+
version: '0'
|
99
133
|
type: :development
|
100
134
|
prerelease: false
|
101
|
-
version_requirements:
|
135
|
+
version_requirements: !ruby/object:Gem::Requirement
|
136
|
+
requirements:
|
137
|
+
- - ">="
|
138
|
+
- !ruby/object:Gem::Version
|
139
|
+
version: '0'
|
102
140
|
- !ruby/object:Gem::Dependency
|
103
|
-
name:
|
104
|
-
requirement:
|
105
|
-
none: false
|
141
|
+
name: datamapper
|
142
|
+
requirement: !ruby/object:Gem::Requirement
|
106
143
|
requirements:
|
107
|
-
- -
|
144
|
+
- - ">="
|
108
145
|
- !ruby/object:Gem::Version
|
109
|
-
version: '
|
146
|
+
version: '0'
|
110
147
|
type: :development
|
111
148
|
prerelease: false
|
112
|
-
version_requirements:
|
149
|
+
version_requirements: !ruby/object:Gem::Requirement
|
150
|
+
requirements:
|
151
|
+
- - ">="
|
152
|
+
- !ruby/object:Gem::Version
|
153
|
+
version: '0'
|
113
154
|
- !ruby/object:Gem::Dependency
|
114
155
|
name: bson_ext
|
115
|
-
requirement:
|
116
|
-
|
156
|
+
requirement: !ruby/object:Gem::Requirement
|
157
|
+
requirements:
|
158
|
+
- - ">="
|
159
|
+
- !ruby/object:Gem::Version
|
160
|
+
version: '0'
|
161
|
+
type: :development
|
162
|
+
prerelease: false
|
163
|
+
version_requirements: !ruby/object:Gem::Requirement
|
164
|
+
requirements:
|
165
|
+
- - ">="
|
166
|
+
- !ruby/object:Gem::Version
|
167
|
+
version: '0'
|
168
|
+
- !ruby/object:Gem::Dependency
|
169
|
+
name: byebug
|
170
|
+
requirement: !ruby/object:Gem::Requirement
|
117
171
|
requirements:
|
118
|
-
- -
|
172
|
+
- - ">="
|
119
173
|
- !ruby/object:Gem::Version
|
120
|
-
version: '
|
174
|
+
version: '0'
|
121
175
|
type: :development
|
122
176
|
prerelease: false
|
123
|
-
version_requirements:
|
177
|
+
version_requirements: !ruby/object:Gem::Requirement
|
178
|
+
requirements:
|
179
|
+
- - ">="
|
180
|
+
- !ruby/object:Gem::Version
|
181
|
+
version: '0'
|
182
|
+
- !ruby/object:Gem::Dependency
|
183
|
+
name: couch_potato
|
184
|
+
requirement: !ruby/object:Gem::Requirement
|
185
|
+
requirements:
|
186
|
+
- - ">="
|
187
|
+
- !ruby/object:Gem::Version
|
188
|
+
version: '0'
|
189
|
+
type: :development
|
190
|
+
prerelease: false
|
191
|
+
version_requirements: !ruby/object:Gem::Requirement
|
192
|
+
requirements:
|
193
|
+
- - ">="
|
194
|
+
- !ruby/object:Gem::Version
|
195
|
+
version: '0'
|
124
196
|
description: Internal authentication handlers for OmniAuth.
|
125
|
-
email:
|
126
|
-
- michael@intridea.com
|
197
|
+
email:
|
127
198
|
executables: []
|
128
199
|
extensions: []
|
129
200
|
extra_rdoc_files: []
|
130
201
|
files:
|
131
|
-
- .gitignore
|
132
|
-
- .rspec
|
202
|
+
- ".gitignore"
|
203
|
+
- ".rspec"
|
204
|
+
- CHANGELOG.md
|
133
205
|
- Gemfile
|
134
|
-
- Gemfile.lock
|
135
206
|
- Guardfile
|
207
|
+
- LICENSE
|
136
208
|
- README.markdown
|
137
209
|
- Rakefile
|
138
210
|
- lib/omniauth-identity.rb
|
@@ -140,43 +212,49 @@ files:
|
|
140
212
|
- lib/omniauth/identity.rb
|
141
213
|
- lib/omniauth/identity/model.rb
|
142
214
|
- lib/omniauth/identity/models/active_record.rb
|
215
|
+
- lib/omniauth/identity/models/couch_potato.rb
|
216
|
+
- lib/omniauth/identity/models/data_mapper.rb
|
143
217
|
- lib/omniauth/identity/models/mongoid.rb
|
144
218
|
- lib/omniauth/identity/secure_password.rb
|
145
219
|
- lib/omniauth/strategies/identity.rb
|
146
220
|
- omniauth-identity.gemspec
|
147
221
|
- spec/omniauth/identity/model_spec.rb
|
148
222
|
- spec/omniauth/identity/models/active_record_spec.rb
|
223
|
+
- spec/omniauth/identity/models/couch_potato_spec.rb
|
224
|
+
- spec/omniauth/identity/models/data_mapper_spec.rb
|
149
225
|
- spec/omniauth/identity/models/mongoid_spec.rb
|
150
226
|
- spec/omniauth/identity/secure_password_spec.rb
|
151
227
|
- spec/omniauth/strategies/identity_spec.rb
|
152
228
|
- spec/spec_helper.rb
|
153
|
-
homepage: http://github.com/
|
154
|
-
licenses:
|
229
|
+
homepage: http://github.com/omniauth/omniauth-identity
|
230
|
+
licenses:
|
231
|
+
- MIT
|
232
|
+
metadata: {}
|
155
233
|
post_install_message:
|
156
234
|
rdoc_options: []
|
157
235
|
require_paths:
|
158
236
|
- lib
|
159
237
|
required_ruby_version: !ruby/object:Gem::Requirement
|
160
|
-
none: false
|
161
238
|
requirements:
|
162
|
-
- -
|
239
|
+
- - ">="
|
163
240
|
- !ruby/object:Gem::Version
|
164
241
|
version: '0'
|
165
242
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
166
|
-
none: false
|
167
243
|
requirements:
|
168
|
-
- -
|
244
|
+
- - ">="
|
169
245
|
- !ruby/object:Gem::Version
|
170
246
|
version: 1.3.6
|
171
247
|
requirements: []
|
172
248
|
rubyforge_project:
|
173
|
-
rubygems_version:
|
249
|
+
rubygems_version: 2.7.10
|
174
250
|
signing_key:
|
175
|
-
specification_version:
|
251
|
+
specification_version: 4
|
176
252
|
summary: Internal authentication handlers for OmniAuth.
|
177
253
|
test_files:
|
178
254
|
- spec/omniauth/identity/model_spec.rb
|
179
255
|
- spec/omniauth/identity/models/active_record_spec.rb
|
256
|
+
- spec/omniauth/identity/models/couch_potato_spec.rb
|
257
|
+
- spec/omniauth/identity/models/data_mapper_spec.rb
|
180
258
|
- spec/omniauth/identity/models/mongoid_spec.rb
|
181
259
|
- spec/omniauth/identity/secure_password_spec.rb
|
182
260
|
- spec/omniauth/strategies/identity_spec.rb
|
data/Gemfile.lock
DELETED
@@ -1,88 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
omniauth-identity (1.0.0.beta1)
|
5
|
-
omniauth (= 1.0.0.beta1)
|
6
|
-
|
7
|
-
GEM
|
8
|
-
remote: http://rubygems.org/
|
9
|
-
specs:
|
10
|
-
activemodel (3.1.1)
|
11
|
-
activesupport (= 3.1.1)
|
12
|
-
builder (~> 3.0.0)
|
13
|
-
i18n (~> 0.6)
|
14
|
-
activerecord (3.1.1)
|
15
|
-
activemodel (= 3.1.1)
|
16
|
-
activesupport (= 3.1.1)
|
17
|
-
arel (~> 2.2.1)
|
18
|
-
tzinfo (~> 0.3.29)
|
19
|
-
activesupport (3.1.1)
|
20
|
-
multi_json (~> 1.0)
|
21
|
-
arel (2.2.1)
|
22
|
-
bcrypt-ruby (3.0.1)
|
23
|
-
bson (1.4.1)
|
24
|
-
bson_ext (1.4.1)
|
25
|
-
builder (3.0.0)
|
26
|
-
diff-lcs (1.1.3)
|
27
|
-
growl (1.0.3)
|
28
|
-
guard (0.8.4)
|
29
|
-
thor (~> 0.14.6)
|
30
|
-
guard-bundler (0.1.3)
|
31
|
-
bundler (>= 1.0.0)
|
32
|
-
guard (>= 0.2.2)
|
33
|
-
guard-rspec (0.4.5)
|
34
|
-
guard (>= 0.4.0)
|
35
|
-
hashie (1.2.0)
|
36
|
-
i18n (0.6.0)
|
37
|
-
maruku (0.6.0)
|
38
|
-
syntax (>= 1.0.0)
|
39
|
-
mongo (1.4.1)
|
40
|
-
bson (= 1.4.1)
|
41
|
-
mongoid (2.3.2)
|
42
|
-
activemodel (~> 3.1)
|
43
|
-
mongo (~> 1.4)
|
44
|
-
tzinfo (~> 0.3.22)
|
45
|
-
multi_json (1.0.3)
|
46
|
-
omniauth (1.0.0.beta1)
|
47
|
-
hashie (~> 1.2)
|
48
|
-
rack
|
49
|
-
rack (1.3.5)
|
50
|
-
rack-test (0.6.1)
|
51
|
-
rack (>= 1.0)
|
52
|
-
rake (0.9.2)
|
53
|
-
rb-fsevent (0.4.3.1)
|
54
|
-
rspec (2.6.0)
|
55
|
-
rspec-core (~> 2.6.0)
|
56
|
-
rspec-expectations (~> 2.6.0)
|
57
|
-
rspec-mocks (~> 2.6.0)
|
58
|
-
rspec-core (2.6.4)
|
59
|
-
rspec-expectations (2.6.0)
|
60
|
-
diff-lcs (~> 1.1.2)
|
61
|
-
rspec-mocks (2.6.0)
|
62
|
-
simplecov (0.5.3)
|
63
|
-
multi_json (~> 1.0.3)
|
64
|
-
simplecov-html (~> 0.5.3)
|
65
|
-
simplecov-html (0.5.3)
|
66
|
-
syntax (1.0.0)
|
67
|
-
thor (0.14.6)
|
68
|
-
tzinfo (0.3.30)
|
69
|
-
|
70
|
-
PLATFORMS
|
71
|
-
ruby
|
72
|
-
|
73
|
-
DEPENDENCIES
|
74
|
-
activerecord (~> 3.1)
|
75
|
-
bcrypt-ruby (~> 3.0)
|
76
|
-
bson_ext (~> 1.4)
|
77
|
-
growl
|
78
|
-
guard
|
79
|
-
guard-bundler
|
80
|
-
guard-rspec
|
81
|
-
maruku (~> 0.6)
|
82
|
-
mongoid (~> 2.3)
|
83
|
-
omniauth-identity!
|
84
|
-
rack-test (~> 0.5)
|
85
|
-
rake (~> 0.8)
|
86
|
-
rb-fsevent
|
87
|
-
rspec (~> 2.5)
|
88
|
-
simplecov (~> 0.4)
|