Skip to content

Commit

Permalink
Fix broken callback_url from parent gem
Browse files Browse the repository at this point in the history
omniauth/omniauth-oauth2#93 (comment)

The URL was being created incorrectly. This strips all the gunk that
Nest was complaining about.

[Fixes #151421294]
  • Loading branch information
jgeiger committed Sep 26, 2017
1 parent 43decfe commit c8915e1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/omniauth/strategies/nest.rb
Expand Up @@ -38,6 +38,12 @@ def callback_phase # rubocop:disable AbcSize, CyclomaticComplexity, MethodLength
session["omniauth.expected_state"] = session["omniauth.state"]
super
end

# https://github.com/intridea/omniauth-oauth2/issues/93#issuecomment-257319242
# A bad merge broke most of the oauth2 gems for omniauth
def callback_url
full_host + script_name + callback_path
end
end
end
end

0 comments on commit c8915e1

Please sign in to comment.