Skip to content

Upgrade to omniauth-oauth2 1.4.0 and fix callback url issue #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 19, 2016
Merged

Upgrade to omniauth-oauth2 1.4.0 and fix callback url issue #1

merged 1 commit into from
May 19, 2016

Conversation

spemmons
Copy link

Omniauth defines callback URL as:

full_host + script_name + callback_path + query_string

(via https://github.com/intridea/omniauth/blob/1cc1cf4b2821a7d2a4a376a5ca93c61b6bd8b5f1/lib/omniauth/strategy.rb#L432)

Omniauth-oauth2 declines to override this after
omniauth/omniauth-oauth2#70

So, this library is overriding omniauth itself, and
omitting the query string from the callback_url (which
Azure AD seems to have trouble with).

Omniauth defines callback URL as:

  full_host + script_name + callback_path + query_string

(via https://github.com/intridea/omniauth/blob/1cc1cf4b2821a7d2a4a376a5ca93c61b6bd8b5f1/lib/omniauth/strategy.rb#L432)

Omniauth-oauth2 declines to override this after
omniauth/omniauth-oauth2#70

So, this library is overriding omniauth itself, and
omitting the query string from the callback_url (which
Azure AD seems to have trouble with).
@spemmons spemmons merged commit f1a9350 into QuantumIOT:master May 19, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants