Skip to content

DSalko/ffcrm_google_oauth2

Repository files navigation

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

About

FatFree CRM Google OAuth2 login

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published