Skip to content

Commit

Permalink
Allow for OmniAuth 2.0 series.
Browse files Browse the repository at this point in the history
  • Loading branch information
koshilife committed Mar 14, 2021
1 parent f022eac commit f5e8c37
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/omniauth/strategies/line.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def callback_phase

def callback_url
# Fixes regression in omniauth-oauth2 v1.4.0 by https://github.com/intridea/omniauth-oauth2/commit/85fdbe117c2a4400d001a6368cc359d88f40abc7
options[:callback_url] || (full_host + script_name + callback_path)
options[:callback_url] || (full_host + callback_path)
end

uid { raw_info['userId'] }
Expand Down
4 changes: 2 additions & 2 deletions omniauth-line.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Gem::Specification.new do |s|
s.require_paths = ["lib"]

s.add_dependency 'json', '>= 2.3.0'
s.add_dependency 'omniauth', '~> 1.2'
s.add_dependency 'omniauth-oauth2', '~>1.3'
s.add_dependency 'omniauth', '~> 2.0'
s.add_dependency 'omniauth-oauth2', '~> 1.7.1'
s.add_development_dependency 'bundler', '~> 2.0'
end

0 comments on commit f5e8c37

Please sign in to comment.