Class: OmniAuth::Strategies::GoogleOpenID

Inherits:
OpenID
  • Object
show all
Defined in:
lib/omniauth/strategies/google_open_id.rb

Instance Method Summary collapse

Constructor Details

#initialize(app, store = nil, options = {}) ⇒ GoogleOpenID

OmniAuth::Strategies::GoogleOpenID helps you to use plain open_id and google open_id both in the same application

use OmniAuth::Builder do
  provider :google_open_id
  provider :open_id, OpenID::Store::Filesystem.new('/tmp')
end


16
17
18
19
# File 'lib/omniauth/strategies/google_open_id.rb', line 16

def initialize(app, store = nil, options = {})
  options[:name]||='google_open_id'
  super(app, store, options)
end

Instance Method Details

#identifierObject



22
23
24
# File 'lib/omniauth/strategies/google_open_id.rb', line 22

def identifier
  'https://www.google.com/accounts/o8/id'
end