FatFree CRM Google OAuth2 login
Ruby HTML CSS JavaScript
Latest commit 22c9535 Aug 27, 2015 @DSalko Added sponsorship reference
Permalink
Failed to load latest commit information.
app
bin
config
lib
spec/test_app
.gitignore
.rvmrc
Gemfile
Gemfile.lock
MIT-LICENSE
Rakefile
ffcrm_google_oauth2.gemspec
readme.md

readme.md

Google OAuth2 support for FatFree CRM

To use add the following to your Gemfile

gem 'ffcrm_google_oauth2', git: "https://github.com/DmitriySalko/ffcrm_google_oauth2.git", branch: 'master'
gem 'omniauth' 
gem 'omniauth-google-oauth2'

And add the middleware to a Rails app in config/initializers/omniauth.rb:

Rails.application.config.middleware.use OmniAuth::Builder do
  provider :google_oauth2, ENV["GOOGLE_CLIENT_ID"], ENV["GOOGLE_CLIENT_SECRET"]
end

To allow ONLY OAuth login add the following to your settings.yml:

:oauth_only: true

This project rocks and uses MIT-LICENSE.

Sponsored by JobMapr - local job fairs search