Skip to content
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

The "Intercept requests(#28)" is a glitch for Facebook login #44

Open
hykw opened this issue Dec 2, 2016 · 2 comments
Open

The "Intercept requests(#28)" is a glitch for Facebook login #44

hykw opened this issue Dec 2, 2016 · 2 comments
Labels
Milestone

Comments

@hykw
Copy link

hykw commented Dec 2, 2016

As of String.replace_trailing in "Intercept requests with and without a trailing slash(#28)", Facebook login doesn't work correctly.

Due to the replacing, conn, which will be passed to the callbacks(like following) don't include ueberauth_auth in assigns at all.

def facebook_callback(%{ assigns: %{ ueberauth_failure: _fails } } = conn, params) do  

It works correctly without the code in lib/ueberauth.ex, like below:

#if strategy = Map.get(opts, String.replace_trailing(request_path, "/", "")) do
if strategy = Map.get(opts, request_path) do
@hassox
Copy link
Member

hassox commented May 24, 2017

@hykw Is this still an issue for you?

@hykw
Copy link
Author

hykw commented Jun 6, 2017

@hassox
Yes, it is. I've updated to ueberauth 0.4.0/ueberauth_facebook 0.6.0 and tried it. It still occurs the same issue. So, the workaround is still to change the line as I mentioned(if strategy... to if strategy = Map.get(opts, request_path) do).

@yordis yordis added this to the v1.1 milestone Dec 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants