Skip to content

Add support for OmniAuth 2.0 #44

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 19, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ env:
- JRUBY_OPTS="$JRUBY_OPTS --debug"
language: ruby
rvm:
- jruby-9000
- 2.2.9
- 2.3.6
- 2.4.3
- 2.5.0
- jruby-9.2.14.0
- 2.4.10
- 2.5.8
- 2.6.6
- 2.7.2
- jruby-head
- ruby-head
matrix:
Expand Down
15 changes: 8 additions & 7 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ GIT
PATH
remote: .
specs:
omniauth-openid (1.0.1)
omniauth (~> 1.0)
omniauth-openid (2.0.0)
omniauth (>= 1.0, < 3.0)
rack-openid (~> 1.4.0)

GEM
Expand All @@ -21,14 +21,15 @@ GEM
diff-lcs (1.3)
docile (1.1.5)
hashdiff (0.3.7)
hashie (3.5.7)
hashie (4.1.0)
json (2.1.0)
mustermann (1.0.1)
omniauth (1.8.1)
hashie (>= 3.4.6, < 3.6.0)
omniauth (2.0.1)
hashie (>= 3.4.6)
rack (>= 1.6.2, < 3)
rack-protection
public_suffix (3.0.1)
rack (2.0.3)
rack (2.2.3)
rack-openid (1.4.2)
rack (>= 1.1.0)
ruby-openid (>= 2.1.8)
Expand Down Expand Up @@ -84,4 +85,4 @@ DEPENDENCIES
yard (>= 0.9.11)

BUNDLED WITH
1.15.4
2.2.5
2 changes: 1 addition & 1 deletion omniauth-openid.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
require File.expand_path('../lib/omniauth-openid/version', __FILE__)

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

gem.authors = ['Michael Bleigh', 'Erik Michaels-Ober', 'Tom Milewski']
Expand Down
2 changes: 1 addition & 1 deletion spec/omniauth/strategies/open_id_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def expired_query_string

describe '/auth/open_id without an identifier URL' do
before do
get '/auth/open_id'
post '/auth/open_id'
end

it 'should respond with OK' do
Expand Down
4 changes: 4 additions & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,7 @@
config.include WebMock::API
config.include Rack::Test::Methods
end

if OmniAuth.config.respond_to?(:request_validation_phase)
OmniAuth.config.request_validation_phase = ->(env) {}
end