Computing Magazine
Social Media Authentication On Rails- Part 1
Posted on the 13 October 2014 by Abhishek Somani @somaniabhi
This Post is intended to provide an overview of the installation of social authentication plugins like Twitter/Github/Facebook & Google using Rails version 4 with devise(authentication plugin),omniauth(API Plugin for Social websites) & Mongo DB as underlying Database. Before Proceeding towards installation/building a rails application that allows authentication with social websites we need to get API/Client Keys & API/Client Secret. Here are the urls from where you can create an App and get the keys: Facebook:URL: Facebook Link Twitter:>URL: Twitter Settings: Enter call back url as : http://127.0.0.1:3000/auth/twitter/callback/ under settings tab once you create an application Google:URL: Google URL
Settings: Go to API Access and enter redirect url as http://localhost:3000/users/auth/google_oauth2/callbackLinkedIn:>URL: LinkedIn URL Linked In Api Doesnot require any call back URI. Application URL is Enough for Linked in api as Omniauth-linked Has its method defined in Gem. In the next post , the ROR code will be explained to integrate these social applications .
Settings: Go to API Access and enter redirect url as http://localhost:3000/users/auth/google_oauth2/callbackLinkedIn:>URL: LinkedIn URL Linked In Api Doesnot require any call back URI. Application URL is Enough for Linked in api as Omniauth-linked Has its method defined in Gem. In the next post , the ROR code will be explained to integrate these social applications .