omniauth 1.2.2 → 1.9.2
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 +5 -5
- data/.github/ISSUE_TEMPLATE.md +20 -0
- data/.gitignore +1 -0
- data/.rubocop.yml +43 -55
- data/.travis.yml +16 -28
- data/Gemfile +13 -19
- data/LICENSE.md +1 -1
- data/README.md +71 -20
- data/Rakefile +38 -2
- data/lib/omniauth/auth_hash.rb +7 -8
- data/lib/omniauth/builder.rb +3 -17
- data/lib/omniauth/failure_endpoint.rb +4 -2
- data/lib/omniauth/form.css +1 -1
- data/lib/omniauth/form.rb +2 -1
- data/lib/omniauth/key_store.rb +22 -0
- data/lib/omniauth/strategies/developer.rb +2 -2
- data/lib/omniauth/strategy.rb +72 -50
- data/lib/omniauth/test/strategy_test_case.rb +2 -2
- data/lib/omniauth/version.rb +1 -1
- data/lib/omniauth.rb +13 -17
- data/omniauth.gemspec +10 -8
- metadata +36 -41
- data/.gemtest +0 -0
- data/Gemfile.rack-1.3.x +0 -25
- data/Guardfile +0 -10
- data/spec/helper.rb +0 -55
- data/spec/omniauth/auth_hash_spec.rb +0 -111
- data/spec/omniauth/builder_spec.rb +0 -50
- data/spec/omniauth/failure_endpoint_spec.rb +0 -58
- data/spec/omniauth/form_spec.rb +0 -23
- data/spec/omniauth/strategies/developer_spec.rb +0 -73
- data/spec/omniauth/strategy_spec.rb +0 -768
- data/spec/omniauth_spec.rb +0 -145
data/lib/omniauth/strategy.rb
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
require '
|
|
1
|
+
require 'omniauth/key_store'
|
|
2
2
|
|
|
3
3
|
module OmniAuth
|
|
4
4
|
class NoSessionError < StandardError; end
|
|
@@ -6,7 +6,7 @@ module OmniAuth
|
|
|
6
6
|
# wrangle multiple providers. Each strategy provided by
|
|
7
7
|
# OmniAuth includes this mixin to gain the default functionality
|
|
8
8
|
# necessary to be compatible with the OmniAuth library.
|
|
9
|
-
module Strategy
|
|
9
|
+
module Strategy # rubocop:disable ModuleLength
|
|
10
10
|
def self.included(base)
|
|
11
11
|
OmniAuth.strategies << base
|
|
12
12
|
|
|
@@ -14,6 +14,7 @@ module OmniAuth
|
|
|
14
14
|
base.class_eval do
|
|
15
15
|
option :setup, false
|
|
16
16
|
option :skip_info, false
|
|
17
|
+
option :origin_param, 'origin'
|
|
17
18
|
end
|
|
18
19
|
end
|
|
19
20
|
|
|
@@ -21,9 +22,9 @@ module OmniAuth
|
|
|
21
22
|
# Returns an inherited set of default options set at the class-level
|
|
22
23
|
# for each strategy.
|
|
23
24
|
def default_options
|
|
24
|
-
|
|
25
|
+
# existing = superclass.default_options if superclass.respond_to?(:default_options)
|
|
25
26
|
existing = superclass.respond_to?(:default_options) ? superclass.default_options : {}
|
|
26
|
-
@default_options
|
|
27
|
+
@default_options ||= OmniAuth::Strategy::Options.new(existing)
|
|
27
28
|
end
|
|
28
29
|
|
|
29
30
|
# This allows for more declarative subclassing of strategies by allowing
|
|
@@ -87,10 +88,13 @@ module OmniAuth
|
|
|
87
88
|
(instance_variable_defined?(:@args) && @args) || existing
|
|
88
89
|
end
|
|
89
90
|
|
|
90
|
-
%w
|
|
91
|
-
class_eval <<-RUBY
|
|
91
|
+
%w[uid info extra credentials].each do |fetcher|
|
|
92
|
+
class_eval <<-RUBY, __FILE__, __LINE__ + 1
|
|
93
|
+
attr_reader :#{fetcher}_proc
|
|
94
|
+
private :#{fetcher}_proc
|
|
95
|
+
|
|
92
96
|
def #{fetcher}(&block)
|
|
93
|
-
return
|
|
97
|
+
return #{fetcher}_proc unless block_given?
|
|
94
98
|
@#{fetcher}_proc = block
|
|
95
99
|
end
|
|
96
100
|
|
|
@@ -132,15 +136,16 @@ module OmniAuth
|
|
|
132
136
|
@options = self.class.default_options.dup
|
|
133
137
|
|
|
134
138
|
options.deep_merge!(args.pop) if args.last.is_a?(Hash)
|
|
135
|
-
options
|
|
139
|
+
options[:name] ||= self.class.to_s.split('::').last.downcase
|
|
136
140
|
|
|
137
141
|
self.class.args.each do |arg|
|
|
138
142
|
break if args.empty?
|
|
143
|
+
|
|
139
144
|
options[arg] = args.shift
|
|
140
145
|
end
|
|
141
146
|
|
|
142
147
|
# Make sure that all of the args have been dealt with, otherwise error out.
|
|
143
|
-
|
|
148
|
+
raise(ArgumentError.new("Received wrong number of arguments. #{args.inspect}")) unless args.empty?
|
|
144
149
|
|
|
145
150
|
yield options if block_given?
|
|
146
151
|
end
|
|
@@ -169,10 +174,10 @@ module OmniAuth
|
|
|
169
174
|
# the request path is recognized.
|
|
170
175
|
#
|
|
171
176
|
# @param env [Hash] The Rack environment.
|
|
172
|
-
def call!(env) # rubocop:disable CyclomaticComplexity
|
|
177
|
+
def call!(env) # rubocop:disable CyclomaticComplexity, PerceivedComplexity
|
|
173
178
|
unless env['rack.session']
|
|
174
179
|
error = OmniAuth::NoSessionError.new('You must provide a session to use OmniAuth.')
|
|
175
|
-
|
|
180
|
+
raise(error)
|
|
176
181
|
end
|
|
177
182
|
|
|
178
183
|
@env = env
|
|
@@ -183,6 +188,7 @@ module OmniAuth
|
|
|
183
188
|
return request_call if on_request_path? && OmniAuth.config.allowed_request_methods.include?(request.request_method.downcase.to_sym)
|
|
184
189
|
return callback_call if on_callback_path?
|
|
185
190
|
return other_phase if respond_to?(:other_phase)
|
|
191
|
+
|
|
186
192
|
@app.call(env)
|
|
187
193
|
end
|
|
188
194
|
|
|
@@ -194,24 +200,29 @@ module OmniAuth
|
|
|
194
200
|
end
|
|
195
201
|
|
|
196
202
|
# Performs the steps necessary to run the request phase of a strategy.
|
|
197
|
-
def request_call # rubocop:disable CyclomaticComplexity, MethodLength
|
|
203
|
+
def request_call # rubocop:disable CyclomaticComplexity, MethodLength, PerceivedComplexity
|
|
198
204
|
setup_phase
|
|
199
205
|
log :info, 'Request phase initiated.'
|
|
206
|
+
|
|
200
207
|
# store query params from the request url, extracted in the callback_phase
|
|
201
|
-
session['omniauth.params'] = request.
|
|
208
|
+
session['omniauth.params'] = request.GET
|
|
202
209
|
OmniAuth.config.before_request_phase.call(env) if OmniAuth.config.before_request_phase
|
|
210
|
+
|
|
203
211
|
if options.form.respond_to?(:call)
|
|
204
212
|
log :info, 'Rendering form from supplied Rack endpoint.'
|
|
205
213
|
options.form.call(env)
|
|
206
214
|
elsif options.form
|
|
207
215
|
log :info, 'Rendering form from underlying application.'
|
|
208
216
|
call_app!
|
|
217
|
+
elsif !options.origin_param
|
|
218
|
+
request_phase
|
|
209
219
|
else
|
|
210
|
-
if request.params[
|
|
211
|
-
env['rack.session']['omniauth.origin'] = request.params[
|
|
220
|
+
if request.params[options.origin_param]
|
|
221
|
+
env['rack.session']['omniauth.origin'] = request.params[options.origin_param]
|
|
212
222
|
elsif env['HTTP_REFERER'] && !env['HTTP_REFERER'].match(/#{request_path}$/)
|
|
213
223
|
env['rack.session']['omniauth.origin'] = env['HTTP_REFERER']
|
|
214
224
|
end
|
|
225
|
+
|
|
215
226
|
request_phase
|
|
216
227
|
end
|
|
217
228
|
end
|
|
@@ -234,8 +245,8 @@ module OmniAuth
|
|
|
234
245
|
end
|
|
235
246
|
|
|
236
247
|
def on_request_path?
|
|
237
|
-
if options
|
|
238
|
-
options
|
|
248
|
+
if options[:request_path].respond_to?(:call)
|
|
249
|
+
options[:request_path].call(env)
|
|
239
250
|
else
|
|
240
251
|
on_path?(request_path)
|
|
241
252
|
end
|
|
@@ -246,7 +257,7 @@ module OmniAuth
|
|
|
246
257
|
end
|
|
247
258
|
|
|
248
259
|
def on_path?(path)
|
|
249
|
-
current_path.casecmp(path)
|
|
260
|
+
current_path.casecmp(path).zero?
|
|
250
261
|
end
|
|
251
262
|
|
|
252
263
|
def options_request?
|
|
@@ -257,20 +268,23 @@ module OmniAuth
|
|
|
257
268
|
# in the event that OmniAuth has been configured to be
|
|
258
269
|
# in test mode.
|
|
259
270
|
def mock_call!(*)
|
|
260
|
-
return mock_request_call if on_request_path?
|
|
271
|
+
return mock_request_call if on_request_path? && OmniAuth.config.allowed_request_methods.include?(request.request_method.downcase.to_sym)
|
|
261
272
|
return mock_callback_call if on_callback_path?
|
|
273
|
+
|
|
262
274
|
call_app!
|
|
263
275
|
end
|
|
264
276
|
|
|
265
277
|
def mock_request_call
|
|
266
278
|
setup_phase
|
|
267
279
|
|
|
268
|
-
session['omniauth.params'] = request.
|
|
280
|
+
session['omniauth.params'] = request.GET
|
|
269
281
|
OmniAuth.config.before_request_phase.call(env) if OmniAuth.config.before_request_phase
|
|
270
|
-
if
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
282
|
+
if options.origin_param
|
|
283
|
+
if request.params[options.origin_param]
|
|
284
|
+
session['omniauth.origin'] = request.params[options.origin_param]
|
|
285
|
+
elsif env['HTTP_REFERER'] && !env['HTTP_REFERER'].match(/#{request_path}$/)
|
|
286
|
+
session['omniauth.origin'] = env['HTTP_REFERER']
|
|
287
|
+
end
|
|
274
288
|
end
|
|
275
289
|
|
|
276
290
|
redirect(callback_url)
|
|
@@ -278,14 +292,15 @@ module OmniAuth
|
|
|
278
292
|
|
|
279
293
|
def mock_callback_call
|
|
280
294
|
setup_phase
|
|
295
|
+
@env['omniauth.origin'] = session.delete('omniauth.origin')
|
|
296
|
+
@env['omniauth.origin'] = nil if env['omniauth.origin'] == ''
|
|
297
|
+
@env['omniauth.params'] = session.delete('omniauth.params') || {}
|
|
298
|
+
|
|
281
299
|
mocked_auth = OmniAuth.mock_auth_for(name.to_s)
|
|
282
300
|
if mocked_auth.is_a?(Symbol)
|
|
283
301
|
fail!(mocked_auth)
|
|
284
302
|
else
|
|
285
303
|
@env['omniauth.auth'] = mocked_auth
|
|
286
|
-
@env['omniauth.params'] = session.delete('omniauth.params') || {}
|
|
287
|
-
@env['omniauth.origin'] = session.delete('omniauth.origin')
|
|
288
|
-
@env['omniauth.origin'] = nil if env['omniauth.origin'] == ''
|
|
289
304
|
OmniAuth.config.before_callback_phase.call(@env) if OmniAuth.config.before_callback_phase
|
|
290
305
|
call_app!
|
|
291
306
|
end
|
|
@@ -299,7 +314,7 @@ module OmniAuth
|
|
|
299
314
|
if options[:setup].respond_to?(:call)
|
|
300
315
|
log :info, 'Setup endpoint detected, running now.'
|
|
301
316
|
options[:setup].call(env)
|
|
302
|
-
elsif options
|
|
317
|
+
elsif options[:setup]
|
|
303
318
|
log :info, 'Calling through to underlying application for setup.'
|
|
304
319
|
setup_env = env.merge('PATH_INFO' => setup_path, 'REQUEST_METHOD' => 'GET')
|
|
305
320
|
call_app!(setup_env)
|
|
@@ -310,7 +325,7 @@ module OmniAuth
|
|
|
310
325
|
# perform any information gathering you need to be able to authenticate
|
|
311
326
|
# the user in this phase.
|
|
312
327
|
def request_phase
|
|
313
|
-
|
|
328
|
+
raise(NotImplementedError)
|
|
314
329
|
end
|
|
315
330
|
|
|
316
331
|
def uid
|
|
@@ -347,14 +362,10 @@ module OmniAuth
|
|
|
347
362
|
#
|
|
348
363
|
# use MyStrategy, :skip_info => lambda{|uid| User.find_by_uid(uid)}
|
|
349
364
|
def skip_info?
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
return true
|
|
355
|
-
end
|
|
356
|
-
end
|
|
357
|
-
false
|
|
365
|
+
return false unless options.skip_info?
|
|
366
|
+
return true unless options.skip_info.respond_to?(:call)
|
|
367
|
+
|
|
368
|
+
options.skip_info.call(uid)
|
|
358
369
|
end
|
|
359
370
|
|
|
360
371
|
def callback_phase
|
|
@@ -370,6 +381,7 @@ module OmniAuth
|
|
|
370
381
|
if options[kind].respond_to?(:call)
|
|
371
382
|
result = options[kind].call(env)
|
|
372
383
|
return nil unless result.is_a?(String)
|
|
384
|
+
|
|
373
385
|
result
|
|
374
386
|
else
|
|
375
387
|
options[kind]
|
|
@@ -377,23 +389,27 @@ module OmniAuth
|
|
|
377
389
|
end
|
|
378
390
|
|
|
379
391
|
def request_path
|
|
380
|
-
options[:request_path].is_a?(String) ? options[:request_path] : "#{path_prefix}/#{name}"
|
|
392
|
+
@request_path ||= options[:request_path].is_a?(String) ? options[:request_path] : "#{path_prefix}/#{name}"
|
|
381
393
|
end
|
|
382
394
|
|
|
383
395
|
def callback_path
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
396
|
+
@callback_path ||= begin
|
|
397
|
+
path = options[:callback_path] if options[:callback_path].is_a?(String)
|
|
398
|
+
path ||= current_path if options[:callback_path].respond_to?(:call) && options[:callback_path].call(env)
|
|
399
|
+
path ||= custom_path(:request_path)
|
|
400
|
+
path ||= "#{path_prefix}/#{name}/callback"
|
|
401
|
+
path
|
|
402
|
+
end
|
|
389
403
|
end
|
|
390
404
|
|
|
391
405
|
def setup_path
|
|
392
406
|
options[:setup_path] || "#{path_prefix}/#{name}/setup"
|
|
393
407
|
end
|
|
394
408
|
|
|
409
|
+
CURRENT_PATH_REGEX = %r{/$}.freeze
|
|
410
|
+
EMPTY_STRING = ''.freeze
|
|
395
411
|
def current_path
|
|
396
|
-
request.path_info.downcase.sub(
|
|
412
|
+
@current_path ||= request.path_info.downcase.sub(CURRENT_PATH_REGEX, EMPTY_STRING)
|
|
397
413
|
end
|
|
398
414
|
|
|
399
415
|
def query_string
|
|
@@ -441,7 +457,7 @@ module OmniAuth
|
|
|
441
457
|
end
|
|
442
458
|
|
|
443
459
|
def name
|
|
444
|
-
options
|
|
460
|
+
options[:name]
|
|
445
461
|
end
|
|
446
462
|
|
|
447
463
|
def redirect(uri)
|
|
@@ -475,7 +491,13 @@ module OmniAuth
|
|
|
475
491
|
OmniAuth.config.on_failure.call(env)
|
|
476
492
|
end
|
|
477
493
|
|
|
478
|
-
|
|
494
|
+
def dup
|
|
495
|
+
super.tap do
|
|
496
|
+
@options = @options.dup
|
|
497
|
+
end
|
|
498
|
+
end
|
|
499
|
+
|
|
500
|
+
class Options < OmniAuth::KeyStore; end
|
|
479
501
|
|
|
480
502
|
protected
|
|
481
503
|
|
|
@@ -488,10 +510,10 @@ module OmniAuth
|
|
|
488
510
|
|
|
489
511
|
def ssl?
|
|
490
512
|
request.env['HTTPS'] == 'on' ||
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
513
|
+
request.env['HTTP_X_FORWARDED_SSL'] == 'on' ||
|
|
514
|
+
request.env['HTTP_X_FORWARDED_SCHEME'] == 'https' ||
|
|
515
|
+
(request.env['HTTP_X_FORWARDED_PROTO'] && request.env['HTTP_X_FORWARDED_PROTO'].split(',')[0] == 'https') ||
|
|
516
|
+
request.env['rack.url_scheme'] == 'https'
|
|
495
517
|
end
|
|
496
518
|
end
|
|
497
519
|
end
|
|
@@ -10,7 +10,7 @@ module OmniAuth
|
|
|
10
10
|
# include OmniAuth::Test::StrategyTestCase
|
|
11
11
|
# def strategy
|
|
12
12
|
# # return the parameters to a Rack::Builder map call:
|
|
13
|
-
# [MyStrategy
|
|
13
|
+
# [MyStrategy, :some, :configuration, :options => 'here']
|
|
14
14
|
# end
|
|
15
15
|
# setup do
|
|
16
16
|
# post '/auth/my_strategy/callback', :user => { 'name' => 'Dylan', 'id' => '445' }
|
|
@@ -37,7 +37,7 @@ module OmniAuth
|
|
|
37
37
|
|
|
38
38
|
def strategy
|
|
39
39
|
error = NotImplementedError.new('Including specs must define #strategy')
|
|
40
|
-
|
|
40
|
+
raise(error)
|
|
41
41
|
end
|
|
42
42
|
end
|
|
43
43
|
end
|
data/lib/omniauth/version.rb
CHANGED
data/lib/omniauth.rb
CHANGED
|
@@ -41,7 +41,7 @@ module OmniAuth
|
|
|
41
41
|
:form_css => Form::DEFAULT_CSS,
|
|
42
42
|
:test_mode => false,
|
|
43
43
|
:logger => default_logger,
|
|
44
|
-
:allowed_request_methods => [
|
|
44
|
+
:allowed_request_methods => %i[get post],
|
|
45
45
|
:mock_auth => {:default => AuthHash.new('provider' => 'default', 'uid' => '1234', 'info' => {'name' => 'Example User'})}
|
|
46
46
|
}
|
|
47
47
|
end
|
|
@@ -82,19 +82,15 @@ module OmniAuth
|
|
|
82
82
|
end
|
|
83
83
|
end
|
|
84
84
|
|
|
85
|
-
def add_mock(provider,
|
|
86
|
-
#
|
|
87
|
-
mock
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
end
|
|
95
|
-
else
|
|
96
|
-
next
|
|
97
|
-
end
|
|
85
|
+
def add_mock(provider, original = {})
|
|
86
|
+
# Create key-stringified new hash from given auth hash
|
|
87
|
+
mock = {}
|
|
88
|
+
original.each_pair do |key, val|
|
|
89
|
+
mock[key.to_s] = if val.is_a? Hash
|
|
90
|
+
Hash[val.each_pair { |k, v| [k.to_s, v] }]
|
|
91
|
+
else
|
|
92
|
+
val
|
|
93
|
+
end
|
|
98
94
|
end
|
|
99
95
|
|
|
100
96
|
# Merge with the default mock and ensure provider is correct.
|
|
@@ -136,7 +132,7 @@ module OmniAuth
|
|
|
136
132
|
end
|
|
137
133
|
|
|
138
134
|
module Utils
|
|
139
|
-
|
|
135
|
+
module_function # rubocop:disable Layout/IndentationWidth
|
|
140
136
|
|
|
141
137
|
def form_css
|
|
142
138
|
"<style type='text/css'>#{OmniAuth.config.form_css}</style>"
|
|
@@ -145,7 +141,7 @@ module OmniAuth
|
|
|
145
141
|
def deep_merge(hash, other_hash)
|
|
146
142
|
target = hash.dup
|
|
147
143
|
|
|
148
|
-
other_hash.
|
|
144
|
+
other_hash.each_key do |key|
|
|
149
145
|
if other_hash[key].is_a?(::Hash) && hash[key].is_a?(::Hash)
|
|
150
146
|
target[key] = deep_merge(target[key], other_hash[key])
|
|
151
147
|
next
|
|
@@ -161,7 +157,7 @@ module OmniAuth
|
|
|
161
157
|
return OmniAuth.config.camelizations[word.to_s] if OmniAuth.config.camelizations[word.to_s]
|
|
162
158
|
|
|
163
159
|
if first_letter_in_uppercase
|
|
164
|
-
word.to_s.gsub(
|
|
160
|
+
word.to_s.gsub(%r{/(.?)}) { '::' + Regexp.last_match[1].upcase }.gsub(/(^|_)(.)/) { Regexp.last_match[2].upcase }
|
|
165
161
|
else
|
|
166
162
|
word.first + camelize(word)[1..-1]
|
|
167
163
|
end
|
data/omniauth.gemspec
CHANGED
|
@@ -1,22 +1,24 @@
|
|
|
1
1
|
# coding: utf-8
|
|
2
|
+
|
|
2
3
|
lib = File.expand_path('../lib', __FILE__)
|
|
3
4
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
5
|
require 'omniauth/version'
|
|
5
6
|
|
|
6
7
|
Gem::Specification.new do |spec|
|
|
7
|
-
spec.add_dependency 'hashie', ['>=
|
|
8
|
-
spec.add_dependency 'rack', '
|
|
9
|
-
spec.add_development_dependency 'bundler', '~> 1.
|
|
8
|
+
spec.add_dependency 'hashie', ['>= 3.4.6']
|
|
9
|
+
spec.add_dependency 'rack', ['>= 1.6.2', '< 3']
|
|
10
|
+
spec.add_development_dependency 'bundler', '~> 1.14'
|
|
11
|
+
spec.add_development_dependency 'rake', '~> 12.0'
|
|
10
12
|
spec.authors = ['Michael Bleigh', 'Erik Michaels-Ober', 'Tom Milewski']
|
|
11
13
|
spec.description = 'A generalized Rack framework for multiple-provider authentication.'
|
|
12
14
|
spec.email = ['michael@intridea.com', 'sferik@gmail.com', 'tmilewski@gmail.com']
|
|
13
|
-
spec.files = `git ls-files`.split(
|
|
14
|
-
spec.homepage = '
|
|
15
|
-
spec.licenses = %w
|
|
15
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.start_with?('spec/') }
|
|
16
|
+
spec.homepage = 'https://github.com/omniauth/omniauth'
|
|
17
|
+
spec.licenses = %w[MIT]
|
|
16
18
|
spec.name = 'omniauth'
|
|
17
|
-
spec.require_paths = %w
|
|
19
|
+
spec.require_paths = %w[lib]
|
|
18
20
|
spec.required_rubygems_version = '>= 1.3.5'
|
|
21
|
+
spec.required_ruby_version = '>= 2.2'
|
|
19
22
|
spec.summary = spec.description
|
|
20
|
-
spec.test_files = spec.files.grep(/^spec\//)
|
|
21
23
|
spec.version = OmniAuth::VERSION
|
|
22
24
|
end
|
metadata
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: omniauth
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.9.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Michael Bleigh
|
|
8
8
|
- Erik Michaels-Ober
|
|
9
9
|
- Tom Milewski
|
|
10
|
-
autorequire:
|
|
10
|
+
autorequire:
|
|
11
11
|
bindir: bin
|
|
12
12
|
cert_chain: []
|
|
13
|
-
date:
|
|
13
|
+
date: 2022-08-18 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: hashie
|
|
@@ -18,48 +18,62 @@ dependencies:
|
|
|
18
18
|
requirements:
|
|
19
19
|
- - ">="
|
|
20
20
|
- !ruby/object:Gem::Version
|
|
21
|
-
version:
|
|
21
|
+
version: 3.4.6
|
|
22
|
+
type: :runtime
|
|
23
|
+
prerelease: false
|
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
25
|
+
requirements:
|
|
26
|
+
- - ">="
|
|
27
|
+
- !ruby/object:Gem::Version
|
|
28
|
+
version: 3.4.6
|
|
29
|
+
- !ruby/object:Gem::Dependency
|
|
30
|
+
name: rack
|
|
31
|
+
requirement: !ruby/object:Gem::Requirement
|
|
32
|
+
requirements:
|
|
33
|
+
- - ">="
|
|
34
|
+
- !ruby/object:Gem::Version
|
|
35
|
+
version: 1.6.2
|
|
22
36
|
- - "<"
|
|
23
37
|
- !ruby/object:Gem::Version
|
|
24
|
-
version: '
|
|
38
|
+
version: '3'
|
|
25
39
|
type: :runtime
|
|
26
40
|
prerelease: false
|
|
27
41
|
version_requirements: !ruby/object:Gem::Requirement
|
|
28
42
|
requirements:
|
|
29
43
|
- - ">="
|
|
30
44
|
- !ruby/object:Gem::Version
|
|
31
|
-
version:
|
|
45
|
+
version: 1.6.2
|
|
32
46
|
- - "<"
|
|
33
47
|
- !ruby/object:Gem::Version
|
|
34
|
-
version: '
|
|
48
|
+
version: '3'
|
|
35
49
|
- !ruby/object:Gem::Dependency
|
|
36
|
-
name:
|
|
50
|
+
name: bundler
|
|
37
51
|
requirement: !ruby/object:Gem::Requirement
|
|
38
52
|
requirements:
|
|
39
53
|
- - "~>"
|
|
40
54
|
- !ruby/object:Gem::Version
|
|
41
|
-
version: '1.
|
|
42
|
-
type: :
|
|
55
|
+
version: '1.14'
|
|
56
|
+
type: :development
|
|
43
57
|
prerelease: false
|
|
44
58
|
version_requirements: !ruby/object:Gem::Requirement
|
|
45
59
|
requirements:
|
|
46
60
|
- - "~>"
|
|
47
61
|
- !ruby/object:Gem::Version
|
|
48
|
-
version: '1.
|
|
62
|
+
version: '1.14'
|
|
49
63
|
- !ruby/object:Gem::Dependency
|
|
50
|
-
name:
|
|
64
|
+
name: rake
|
|
51
65
|
requirement: !ruby/object:Gem::Requirement
|
|
52
66
|
requirements:
|
|
53
67
|
- - "~>"
|
|
54
68
|
- !ruby/object:Gem::Version
|
|
55
|
-
version: '
|
|
69
|
+
version: '12.0'
|
|
56
70
|
type: :development
|
|
57
71
|
prerelease: false
|
|
58
72
|
version_requirements: !ruby/object:Gem::Requirement
|
|
59
73
|
requirements:
|
|
60
74
|
- - "~>"
|
|
61
75
|
- !ruby/object:Gem::Version
|
|
62
|
-
version: '
|
|
76
|
+
version: '12.0'
|
|
63
77
|
description: A generalized Rack framework for multiple-provider authentication.
|
|
64
78
|
email:
|
|
65
79
|
- michael@intridea.com
|
|
@@ -69,15 +83,13 @@ executables: []
|
|
|
69
83
|
extensions: []
|
|
70
84
|
extra_rdoc_files: []
|
|
71
85
|
files:
|
|
72
|
-
- ".
|
|
86
|
+
- ".github/ISSUE_TEMPLATE.md"
|
|
73
87
|
- ".gitignore"
|
|
74
88
|
- ".rspec"
|
|
75
89
|
- ".rubocop.yml"
|
|
76
90
|
- ".travis.yml"
|
|
77
91
|
- ".yardopts"
|
|
78
92
|
- Gemfile
|
|
79
|
-
- Gemfile.rack-1.3.x
|
|
80
|
-
- Guardfile
|
|
81
93
|
- LICENSE.md
|
|
82
94
|
- README.md
|
|
83
95
|
- Rakefile
|
|
@@ -87,6 +99,7 @@ files:
|
|
|
87
99
|
- lib/omniauth/failure_endpoint.rb
|
|
88
100
|
- lib/omniauth/form.css
|
|
89
101
|
- lib/omniauth/form.rb
|
|
102
|
+
- lib/omniauth/key_store.rb
|
|
90
103
|
- lib/omniauth/strategies/developer.rb
|
|
91
104
|
- lib/omniauth/strategy.rb
|
|
92
105
|
- lib/omniauth/test.rb
|
|
@@ -95,19 +108,11 @@ files:
|
|
|
95
108
|
- lib/omniauth/test/strategy_test_case.rb
|
|
96
109
|
- lib/omniauth/version.rb
|
|
97
110
|
- omniauth.gemspec
|
|
98
|
-
|
|
99
|
-
- spec/omniauth/auth_hash_spec.rb
|
|
100
|
-
- spec/omniauth/builder_spec.rb
|
|
101
|
-
- spec/omniauth/failure_endpoint_spec.rb
|
|
102
|
-
- spec/omniauth/form_spec.rb
|
|
103
|
-
- spec/omniauth/strategies/developer_spec.rb
|
|
104
|
-
- spec/omniauth/strategy_spec.rb
|
|
105
|
-
- spec/omniauth_spec.rb
|
|
106
|
-
homepage: http://github.com/intridea/omniauth
|
|
111
|
+
homepage: https://github.com/omniauth/omniauth
|
|
107
112
|
licenses:
|
|
108
113
|
- MIT
|
|
109
114
|
metadata: {}
|
|
110
|
-
post_install_message:
|
|
115
|
+
post_install_message:
|
|
111
116
|
rdoc_options: []
|
|
112
117
|
require_paths:
|
|
113
118
|
- lib
|
|
@@ -115,25 +120,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
115
120
|
requirements:
|
|
116
121
|
- - ">="
|
|
117
122
|
- !ruby/object:Gem::Version
|
|
118
|
-
version: '
|
|
123
|
+
version: '2.2'
|
|
119
124
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
120
125
|
requirements:
|
|
121
126
|
- - ">="
|
|
122
127
|
- !ruby/object:Gem::Version
|
|
123
128
|
version: 1.3.5
|
|
124
129
|
requirements: []
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
signing_key:
|
|
130
|
+
rubygems_version: 3.2.32
|
|
131
|
+
signing_key:
|
|
128
132
|
specification_version: 4
|
|
129
133
|
summary: A generalized Rack framework for multiple-provider authentication.
|
|
130
|
-
test_files:
|
|
131
|
-
- spec/helper.rb
|
|
132
|
-
- spec/omniauth/auth_hash_spec.rb
|
|
133
|
-
- spec/omniauth/builder_spec.rb
|
|
134
|
-
- spec/omniauth/failure_endpoint_spec.rb
|
|
135
|
-
- spec/omniauth/form_spec.rb
|
|
136
|
-
- spec/omniauth/strategies/developer_spec.rb
|
|
137
|
-
- spec/omniauth/strategy_spec.rb
|
|
138
|
-
- spec/omniauth_spec.rb
|
|
139
|
-
has_rdoc:
|
|
134
|
+
test_files: []
|
data/.gemtest
DELETED
|
File without changes
|
data/Gemfile.rack-1.3.x
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
source 'https://rubygems.org'
|
|
2
|
-
|
|
3
|
-
gem 'jruby-openssl', :platforms => :jruby
|
|
4
|
-
gem 'rack', '~> 1.3.0'
|
|
5
|
-
gem 'rake'
|
|
6
|
-
gem 'yard'
|
|
7
|
-
|
|
8
|
-
group :test do
|
|
9
|
-
gem 'coveralls', :require => false
|
|
10
|
-
gem 'json', '>= 1.8.1', :platforms => [:jruby, :rbx, :ruby_18, :ruby_19]
|
|
11
|
-
gem 'mime-types', '~> 1.25', :platforms => [:jruby, :ruby_18]
|
|
12
|
-
gem 'rack-test'
|
|
13
|
-
gem 'rest-client', '~> 1.6.0', :platforms => [:jruby, :ruby_18]
|
|
14
|
-
gem 'rspec', '>= 2.14'
|
|
15
|
-
gem 'rubocop', '>= 0.23', :platforms => [:ruby_19, :ruby_20, :ruby_21]
|
|
16
|
-
gem 'simplecov', :require => false
|
|
17
|
-
end
|
|
18
|
-
|
|
19
|
-
platforms :rbx do
|
|
20
|
-
gem 'racc'
|
|
21
|
-
gem 'rubinius-coverage', '~> 2.0'
|
|
22
|
-
gem 'rubysl', '~> 2.0'
|
|
23
|
-
end
|
|
24
|
-
|
|
25
|
-
gemspec
|
data/Guardfile
DELETED