Skip to content

sanki4489/Rails_omniauth_twitter_demo_working

Repository files navigation

Steps to implement omniauth twitter or any other provider

  1. bundle add omniauth-provider gem and omniauth_csrf_protection gem
  2. add configuration to config file, i.e. ADD provider token and secret key
  3. add a refernce link to the provider, ex link_to, button_to with method as post
  4. add a routes to receive callback from provider and controller to create the appropriate action.
  5. save the user info into database to complete the login.
  6. create a new model for twitter and save the data from omniauth hash.
  7. create destroy to complete the login.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors