lib/omniauth/strategies/google_apps.rb in oa-openid-0.1.1 vs lib/omniauth/strategies/google_apps.rb in oa-openid-0.1.2
- old
+ new
@@ -6,9 +6,16 @@
def initialize(app, store = nil, options = {})
options[:name] ||= 'google_apps'
super(app, store, options)
end
+ def get_identifier
+ OmniAuth::Form.build('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