Skip to content
This repository has been archived by the owner on Apr 27, 2021. It is now read-only.

Shopify/google_auth

Repository files navigation

GoogleAuth

What

GoogleAuth is a very, very trivial convenience wrapper around omniauth-google-apps that makes a lot of assumptions, and requires much less setup.

Version

Version 0.1.0 is Rails 4.x compatible. For Rails 3.x projects use version 0.0.4

How

1. Your user model must have the string fields name, email, and uid.

2. Add to your Gemfile:

gem 'google_auth'

3. Create an initializer:

# config/initializers/google_auth.rb
Rails.application.config.google_auth.domain = 'yourgoogleappsdomain.com'
# other options: 'user_class', 'path'. See source for details.

4. Set up whichever controller(s) you want protected:

include GoogleAuth::Controller

About

No description, website, or topics provided.

Resources

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages