Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ernanej/social-authentication

Application developed in Ruby on Rails as a template to perform user authentication through their social networks. In this system, the following networks were used as a form of authentication, in addition, of course, to the creation of a standard user with email and password: Facebook, Github and Google.
https://github.com/ernanej/social-authentication

authentication authentication-backend authentication-ruby devise oauth2 omniauth omniauth-facebook omniauth-github omniauth-google-oauth2

Last synced: about 2 months ago
JSON representation

Application developed in Ruby on Rails as a template to perform user authentication through their social networks. In this system, the following networks were used as a form of authentication, in addition, of course, to the creation of a standard user with email and password: Facebook, Github and Google.

Awesome Lists containing this project

README

        


Social Authentication


Technologies   |   
Project   |   
Use   


## 🚀 Technologies

This application was developed with the following technologies:

- Ruby

Gems:
- Rails
- devise
- omniauth
- omniauth-github
- omniauth-facebook
- omniauth-google-oauth2
- omniauth-rails_csrf_protection

## 💻 Project


Application developed in Ruby on Rails as a template to perform user authentication through their social networks. In this system, the following networks were used as a form of authentication in addition, of course, to the creation of a default user with email and password.

* [x] Authentication with Google
* [x] Authentication with Github
* [x] Authentication with Facebook

## 💡 Use

- Clone the repository:

```bash
$ git clone https://github.com/ErnaneJ/Social-Authentication.git
```

- Install the dependencies

```bash
$ bundle install
```
- Generate your application on the platform.
- Google
- Github
- Facebook

- Take the Client ID and Client Secret and put them in an .ENV file.
_See the example._

- Start a server on localhost

```bash
$ Rails s
```
_Note: The facebook documentation does not allow the execution of applications linked to facebook without ssl certificate. To enable ssl on localhost generate an ssl key and run rails with it._

```bash
$ openssl req -x509 -sha256 -nodes -newkey rsa:2048 -days 365 -keyout localhost.key -out localhost.crt

$ pwd
=> copy path

$ rails s -b 'ssl://localhost:3000?key=/PATH/localhost.key&cert=/PATH/localhost.crt'
```
_Read more about it here._

## 📚 Documentation:
- Google
- Github
- Facebook

---


Developed with ❤ by Ernane Ferreira. 👋🏻

Project carried out in support of the company Real Seguro Viagem in its internship process.