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

What IP addresses make requests to 3rd party Oauth? #41

Open
adamgins opened this issue Apr 10, 2015 · 0 comments
Open

What IP addresses make requests to 3rd party Oauth? #41

adamgins opened this issue Apr 10, 2015 · 0 comments

Comments

@adamgins
Copy link

Hi, I am using Cluster on AWS Opsworks... thanks to the great help of folks Sunsama.com as per https://blog.sunsama.com/meteor-docker-opsworks/

One thing I am not sure on is if I am using 3rd party Oauth (via accounts-facebook etc) the require that I put in the requesting domain and server IP (whitelist).

I have setup cluster to handle requests at mydomain.com ... I have not used the load balancer option. I have two servers

I have setup Facebook app to allow login from mydomain.com. If Cluster redirects me to the actual machine of my domain I can login. But when Cluster sends me to one of the other machines in the Cluster I get the following error:

Exception while invoking method 'login' Error: Failed to complete OAuth handshake with Facebook. failed [400] {"error":{"message":"This IP can't make requests for that application.","type":"OAuthException","code":5}} 

So this makes sense as the second machine in the cluster would have an IP that Facebook does not know.

As the system may autoscale, the IPs may not be known to Facebook.

I there some way to have Cluster have all requests seem like they're from one IP?

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