-
-
Notifications
You must be signed in to change notification settings - Fork 304
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
callback_url definition #28
Comments
Overridden method discarded the query_string
I couldn't find a reason as to why this would be the case. I would like @mbleigh to weigh in before merging this into master. Per RFC3986:
|
Is there any news on this? It took me quite some time debugging why the callback url would lose the querystring. |
Patch breaks google oauth2, but twitter and facebook work fine. |
Breaks Spotify and Beats (which do not accept callback urls with get params). You can use |
@stereobooster, |
This reverts commit 58fb901.
Don't override callback_url Attempt to correct #28
A little silent in here... I think the override was removed in #70. However, now the callback_url contains the >> callback_url
=> "http://localhost:3005/auth/XXX/callback?code=63e874156af1c6e9c056c34f5225ac7fa58f4cb0ba1ce19f12674fe51f20739c&state=864417e69b314d78dd33201169c7ca58dad54070ea6f80f1" At least the code parameter was provided by the AS in response to the Authorization Request. However, a spec compliant AS must compare the Since the former request could not possibly contain the tl; dr: By transmitting the I don't quite know why this is no issue for many more people... |
+1 sameissue here |
I think this is a better fix for omniauth#28, and saves many OAuth2 strategies broken by omniauth#70.
I think this is a better fix for omniauth#28, and saves many OAuth2 strategies broken by omniauth#70.
I think this is a better fix for omniauth#28, and saves many OAuth2 strategies broken by omniauth#70.
I had the same issue @NobodysNightmare mentioned above — the removal of the I had to add this to all my custom strategies to get them working again. def callback_url
full_host + callback_path
end I also use omnituah-google-oauth2, which continued to work after #70, and I was wondering why it didn't have the same problem with |
I just ran into this issue with trying to implement Airtable; Where they were rejecting the While it seems like the spec is well defined, it does seem common enough of an implementation detail that it might be wise to uplevel this to an option that may be configured depending on how the server is behaving. |
Chiming in from Airtable, our reading of RFC3986:
was that query parameters included in redirect URI stored in authorization server's database must be preserved. e.g. if you've registered the URI |
Hello
Is there any reason why callback_url is overriden line 37?
It's losing query_string from its original definition, which I find very useful...
Cheers
Ben
The text was updated successfully, but these errors were encountered: