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 77c2bc4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/omniauth/strategies/twitch.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,11 @@ def build_access_token
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 77c2bc4

Please sign in to comment.