Skip to content
Open
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
13 changes: 13 additions & 0 deletions lib/omniauth/strategies/line.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,19 @@ def callback_phase
super
end

# Correct redirect_uri_mismatch issues related to callback_uri through path match.
# NOTE If we're using code from the signed request then FB sets the redirect_uri to '' during the authorize
# phase and it must match during the access_token phase:
# https://github.com/facebook/facebook-php-sdk/blob/master/src/base_facebook.php#L477
def callback_url
if @authorization_code_from_signed_request_in_cookie
''
else
# callback url ignorance issue from https://github.com/intridea/omniauth-oauth2/commit/85fdbe117c2a4400d001a6368cc359d88f40abc7
options[:callback_url] || (full_host + script_name + callback_path)
end
end

uid { raw_info['userId'] }

info do
Expand Down
2 changes: 1 addition & 1 deletion omniauth-line.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ Gem::Specification.new do |s|
s.require_paths = ["lib"]

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