Skip to content

Commit

Permalink
Merge pull request #2 from LaunchAcademy/explicit-callback-url-method
Browse files Browse the repository at this point in the history
Create fallback for removal of callback_url in omniauth-oauth2 dependency.
  • Loading branch information
enthusiastick authored Feb 6, 2017
2 parents e231c20 + bd8accc commit 816162a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/omniauth/strategies/launch_pass.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ class LaunchPass < OmniAuth::Strategies::OAuth2
raw_info["user"]
end

def callback_url
full_host + script_name + callback_path
end

def setup_phase
request.env['omniauth.strategy'].options[:authorize_params][:signing_up] = request.params["signing_up"]
end
Expand Down

0 comments on commit 816162a

Please sign in to comment.