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

Facebook link redirect not working properly. #47

Open
devopsadmin-james opened this issue Jun 17, 2020 · 0 comments
Open

Facebook link redirect not working properly. #47

devopsadmin-james opened this issue Jun 17, 2020 · 0 comments

Comments

@devopsadmin-james
Copy link

Facebook link redirect not working properly.

I'm working on this project https://github.com/JKHeadley/appy.git for which I have used nginx to redirect requests from port 80 to port 443. Nginx redirects requests to the location of the frontend web-app on port 3000.

The webapp redirect requests to backend-api on port 8080.

Now on the front-end web-app when I click on one of the social media links, for example Facebook. The request is going to Facebook with my Facebook creds from my Appy server. But when the request is redirected back to the Appy server from Facebook the request is coming on port 8080:

http://example.com:8080/auth/face-book&state=ZXn29Y7PsAX17Fso7cfHQ1&scope=email

Facebook throws the following error:

Facebook has detected that Appy-World isn't using a secure connection to transfer information.

To check above scenario u can visit this url http://myappy.cf
above site works on ssl.

I have raised this issue on server-fault as a process of elimination, i guess. Please check this link : https://serverfault.com/questions/1021677/how-to-redirect-a-request-from-http-to-https-using-nginx

One of them has suggested that the issue is with the code in this repo with handling of https scheme for generating correct urls.

So could you guys kindly look into this issue and help us resolving it.

Quick response will be appreciated
Thanks

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

No branches or pull requests

1 participant