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