Class: OmniAuth::Strategies::GoogleApps
- Defined in:
- lib/omniauth/strategies/google_apps.rb
Constant Summary
Constants inherited from OpenID
OpenID::AX, OpenID::IDENTIFIER_URL_PARAMETER
Instance Attribute Summary
Attributes inherited from OpenID
Instance Method Summary collapse
- #get_identifier ⇒ Object
- #identifier ⇒ Object
-
#initialize(app, store = nil, options = {}, &block) ⇒ GoogleApps
constructor
A new instance of GoogleApps.
Constructor Details
#initialize(app, store = nil, options = {}, &block) ⇒ GoogleApps
Returns a new instance of GoogleApps.
6 7 8 9 |
# File 'lib/omniauth/strategies/google_apps.rb', line 6 def initialize(app, store = nil, = {}, &block) [:name] ||= 'google_apps' super(app, store, , &block) end |
Instance Method Details
#get_identifier ⇒ Object
11 12 13 14 15 16 |
# File 'lib/omniauth/strategies/google_apps.rb', line 11 def get_identifier OmniAuth::Form.build(:title => 'Google Apps Authentication') do label_field('Google Apps Domain', 'domain') input_field('url', 'domain') end.to_response end |
#identifier ⇒ Object
18 19 20 |
# File 'lib/omniauth/strategies/google_apps.rb', line 18 def identifier [:domain] || request['domain'] end |