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

Version Path
oa-openid-0.1.6 lib/omniauth/strategies/google_apps.rb
oa-openid-0.1.5 lib/omniauth/strategies/google_apps.rb
oa-openid-0.1.4 lib/omniauth/strategies/google_apps.rb
oa-openid-0.1.3 lib/omniauth/strategies/google_apps.rb
oa-openid-0.1.2 lib/omniauth/strategies/google_apps.rb