Sha256: 2fac0afbc37468cc04dfc8463966e629883980d08a6c6d23571ac6c90112b088

Contents?: true

Size: 599 Bytes

Versions: 1

Compression:

Stored size: 599 Bytes

Contents

require 'google_authentication'

require 'rails'
require 'action_controller'

require 'omniauth'
require 'omniauth-google-apps'
require 'devise'

module GoogleAuthentication
  # rails engine to add controllers, routes and configuration needed to the gem
  class Engine < Rails::Engine

    # Initialize devise configuration for omniauth
    initializer "google_authentication.domain", :before => "devise.omniauth" do
      require 'openid/store/filesystem'
      Devise.omniauth :google_apps, :store => OpenID::Store::Filesystem.new('/tmp'), :domain => GoogleAuthentication.domain
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
google_authentication-0.2.0 lib/google_authentication/engine.rb