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

Version Path
oa-openid-0.2.0.beta5 lib/omniauth/strategies/google_apps.rb
oa-openid-0.2.0.beta4 lib/omniauth/strategies/google_apps.rb
oa-openid-0.2.0.beta3 lib/omniauth/strategies/google_apps.rb
oa-openid-0.2.0.beta2 lib/omniauth/strategies/google_apps.rb
oa-openid-0.2.0.beta1 lib/omniauth/strategies/google_apps.rb