lib/omniauth/strategies/google_apps.rb in oa-openid-0.2.4 vs lib/omniauth/strategies/google_apps.rb in oa-openid-0.2.5
- old
+ new
@@ -5,17 +5,17 @@
class GoogleApps < OmniAuth::Strategies::OpenID
def initialize(app, store = nil, options = {}, &block)
options[:name] ||= 'google_apps'
super(app, store, options, &block)
end
-
+
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
-
+
def identifier
options[:domain] || request['domain']
end
end
end