Skip to content

Commit

Permalink
Fix omniauth-oauth2 1.4 callback_url regression
Browse files Browse the repository at this point in the history
Bug introduced by omniauth-oauth2 change: omniauth/omniauth-oauth2#70
Fixes WebTheoryLLC#3
  • Loading branch information
jtokoph committed Dec 5, 2015
1 parent c0b68d6 commit 3032f76
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/omniauth/strategies/twitch.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ def access_token_options
options.access_token_options.inject({}) { |h,(k,v)| h[k.to_sym] = v; h }
end

def callback_url
full_host + script_name + callback_path
end

def authorize_params
super.tap do |params|
options[:authorize_options].each do |k|
Expand Down

0 comments on commit 3032f76

Please sign in to comment.