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
Login with Facebook always uses the port 3000 #1394
Comments
Did you change the redirect URL on Facebook developer page? (Valid OAuth redirect URIs) |
Hi @ptzool, Yesterday, I let it be empty. I didn't configure anything for this. So, port 3000 was somehow fixed in code itself. This morning, I just changed Valid OAuth redirect URIs on Facebook with |
What's the value for |
Hi @rap1ds, I used the port 80. I already tested for both domain:80 and domain (without port), the redirect_uri was the same in both cases. |
Hi all, I found out that this issue came from OmniAuth. Actually, I don't know how to solve it in general. But in my case, I just added the following line:
just after the line 156 in the file https://github.com/sharetribe/sharetribe/blob/master/config/application.rb. If I were a Rails developer, I would check whether the current URL is using HTTPS or not. |
Hi @congkinh This sounds interesting. It could be a bug in our code. However, I would need a little bit more information to debug this further. Can you provide exact steps how to reproduce the issues? That would be helpful. You can also use the Issue Template, it's here: https://raw.githubusercontent.com/sharetribe/sharetribe/master/ISSUE_TEMPLATE.md |
Hi @rap1ds, The following information would be helpful for you: Sharetribe Version:Environment:Debian 7 and Amazon S3 Server mode:Production Description:Signing in with Facebook account always redirects to the 3000 port. Steps To Reproduce:
Expected Result:I was expected to be able to continue using HTTPS after signing in with a Facebook account. Actual Result:The Additional information |
@congkinh Thanks for the information! Right now I don't have time to dig into this issue, but I'll leave the issue open since it looks like something that maybe is a bug (or at least unexpected behaviour) in the code. |
Closing as inactive |
Hi,
I deployed a version of sharetribe in production mode with integrating Facebook. I use nginx for reverse proxy from 80 (443 later) to 3000. However, when I logged in with my Facebook test account, the redirect_uri was using the port 3000 instead of 80. Could anyone of you tell me how to fix it? The following pattern was received by logging in with Facebook:
Best regards,
Kinh
The text was updated successfully, but these errors were encountered: