Build for the Web
  • How Netflix uses Java


    The above presentation was given by Netflix Staff Software Engineer Paul Bakker at JavaOne 2025. Some observations on the talk below:

  • Google Sign in with Devise and Rails

    Devise gives us a robust library for implementing user account management with Rails, we can expand this with Omniauth to give us support for any number of third party OAuth providers such as Google, Facebook, Apple etc. In this example we’ll create a rails 7 app with devise and then use omniauth to add support for sign in with Google.

    You can find all the source for this project on
    Github

    First create a new rails app:

    rails new google-omniauth-devise --css tailwind
    

    Add the devise and omniauth gems to your Gemfile:

    gem "devise", "~> 4.8.1"
    gem "omniauth"
    gem "omniauth-google-oauth2"
    gem "omniauth-rails_csrf_protection"
    

Build for the Web

GitHub jkehoe X jerkehoe LinkedIn Linkedin
  • About
  • Blog
×