piotrleniec / sendit

1 stars 0 forks source link

Authentication through Facebook. #1

Open piotrleniec opened 7 years ago

piotrleniec commented 7 years ago

We'll use devise for Facebook authentication. An example of the integration can be found here. Before implementing the authentication we have to set up dotenv to securely use Facebook configuration in our codebase. dotenv setup issue can be found here.

piotrleniec commented 7 years ago

Blocked by https://github.com/piotrleniec/sendit/issues/2 and https://github.com/piotrleniec/sendit/issues/3.

dimon-k commented 7 years ago

I think after reviewing this https://github.com/piotrleniec/sendit/pull/6 and this https://github.com/piotrleniec/sendit/pull/7 , it can be unblocked.

dimon-k commented 7 years ago

I think now we can unblock this one!

piotrleniec commented 7 years ago

@dimon-k no longer blocked

piotrleniec commented 7 years ago

The documentation is correct (I managed to configure the authentication through Facebook), but I stumbled upon a problem. After clicking Sign in with Facebook I'm redirected to Facebook and an error shows up: error-modal To fix it, we need to configure a Facebook app. Go to Facebook for Developers site and to your application. You should see something like this: app Click + Add Platform, select Website and type http://localhost:3000/ to the Site URL input. After that, after clicking Sign in with Facebook you will see: hooooray