Tuesday, 9 February 2016
On my first official rest day last week, I tried to create a login system for my faculty's main student club. I failed many times, despite following every single one of these tutorials faithfully in turn.
Rails Authentication with OAuth 2.0 and OmniAuth
How To Configure Devise and OmniAuth for Your Rails Application
Google Integration Using Devise and Omniauth In Rails App
I managed to cook something up in the end; the ingredients of the login system:
- Devise (authentication and redirection)
- OmniAuth (integrate Google into Devise)
- Google Application (Google API)
- "User" model (but does not seem necessary because I am "outsourcing" the authentication to Google)
I tried to erase the login form but I could only do it halfway. I blocked registration, recovery, and anything else that allows logging in through the form. Will update soon if there is any success.