Sha256: d0814a1f831178da5695df8f981a214a242866ad6b1e2ee98a69b2c78591e236
Contents?: true
Size: 593 Bytes
Versions: 5
Compression:
Stored size: 593 Bytes
Contents
require 'omniauth/openid' module OmniAuth module Strategies 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('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 end
Version data entries
5 entries across 5 versions & 1 rubygems