Skip to content

Commit 8ee8ef3

Browse files
authored
Merge pull request #44 from jkowens/patch-1
Add support for OmniAuth 2.0
2 parents 8a46fa9 + 1e5fa25 commit 8ee8ef3

File tree

5 files changed

+19
-14
lines changed

5 files changed

+19
-14
lines changed

.travis.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ env:
88
- JRUBY_OPTS="$JRUBY_OPTS --debug"
99
language: ruby
1010
rvm:
11-
- jruby-9000
12-
- 2.2.9
13-
- 2.3.6
14-
- 2.4.3
15-
- 2.5.0
11+
- jruby-9.2.14.0
12+
- 2.4.10
13+
- 2.5.8
14+
- 2.6.6
15+
- 2.7.2
1616
- jruby-head
1717
- ruby-head
1818
matrix:

Gemfile.lock

+8-7
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ GIT
77
PATH
88
remote: .
99
specs:
10-
omniauth-openid (1.0.1)
11-
omniauth (~> 1.0)
10+
omniauth-openid (2.0.0)
11+
omniauth (>= 1.0, < 3.0)
1212
rack-openid (~> 1.4.0)
1313

1414
GEM
@@ -21,14 +21,15 @@ GEM
2121
diff-lcs (1.3)
2222
docile (1.1.5)
2323
hashdiff (0.3.7)
24-
hashie (3.5.7)
24+
hashie (4.1.0)
2525
json (2.1.0)
2626
mustermann (1.0.1)
27-
omniauth (1.8.1)
28-
hashie (>= 3.4.6, < 3.6.0)
27+
omniauth (2.0.1)
28+
hashie (>= 3.4.6)
2929
rack (>= 1.6.2, < 3)
30+
rack-protection
3031
public_suffix (3.0.1)
31-
rack (2.0.3)
32+
rack (2.2.3)
3233
rack-openid (1.4.2)
3334
rack (>= 1.1.0)
3435
ruby-openid (>= 2.1.8)
@@ -84,4 +85,4 @@ DEPENDENCIES
8485
yard (>= 0.9.11)
8586

8687
BUNDLED WITH
87-
1.15.4
88+
2.2.5

omniauth-openid.gemspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
require File.expand_path('../lib/omniauth-openid/version', __FILE__)
33

44
Gem::Specification.new do |gem|
5-
gem.add_dependency 'omniauth', '~> 1.0'
5+
gem.add_dependency 'omniauth', ['>= 1.0', '< 3.0']
66
gem.add_dependency 'rack-openid', '~> 1.4.0'
77

88
gem.authors = ['Michael Bleigh', 'Erik Michaels-Ober', 'Tom Milewski']

spec/omniauth/strategies/open_id_spec.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def expired_query_string
1818

1919
describe '/auth/open_id without an identifier URL' do
2020
before do
21-
get '/auth/open_id'
21+
post '/auth/open_id'
2222
end
2323

2424
it 'should respond with OK' do

spec/spec_helper.rb

+4
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,7 @@
1111
config.include WebMock::API
1212
config.include Rack::Test::Methods
1313
end
14+
15+
if OmniAuth.config.respond_to?(:request_validation_phase)
16+
OmniAuth.config.request_validation_phase = ->(env) {}
17+
end

0 commit comments

Comments
 (0)