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.

Home Page:https://social-network-authentication.herokuapp.com/users/sign_in

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

  • Authentication with Google
  • Authentication with Github
  • Authentication with Facebook

πŸ’‘ Use

  • Clone the repository:
$ git clone https://github.com/ErnaneJ/Social-Authentication.git
  • Install the dependencies
$ bundle install
  • Generate your application on the platform.

  • Take the Client ID and Client Secret and put them in an .ENV file.
    See the example.

  • Start a server on localhost

$ 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.

$ 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:


Developed with ❀ by Ernane Ferreira. πŸ‘‹πŸ»
Project carried out in support of the company Real Seguro Viagem in its internship process.

About

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://social-network-authentication.herokuapp.com/users/sign_in


Languages

Language:Ruby 69.4%Language:HTML 25.5%Language:JavaScript 4.1%Language:CSS 0.8%Language:SCSS 0.2%