DEV Community

Tao Liu
Tao Liu

Posted on

Deploy Rails with Google OmniAuth to Heroku Tips

Add to Gemfile:

ruby '2.6.6'

gem 'omniauth'
gem 'omniauth-google-oauth2'
gem 'omniauth-rails_csrf_protection'

Use button:
<%= button_to "Log in with Google", '/auth/google_oauth2' %>

Config Google:
Alt Text

Top comments (0)