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