Sha256: a663c9d84ddcf253e5a02674828de912d5f73d697ecf42178afca7c8d98ab5ea

Contents?: true

Size: 405 Bytes

Versions: 7

Compression:

Stored size: 405 Bytes

Contents

module OmniAuth
  module Strategies
    class CAS
      class Configuration

        def initialize( options )
          @options = options

          validate_cas_setup
        end

        def validate_cas_setup
          if @options.host.nil? or @options.login_url.nil?
            raise ArgumentError.new(":host and :login_url MUST be provided")
          end
        end

      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
omniauth-cas-1.0.0 lib/omniauth/strategies/cas/configuration.rb
omniauth-cas-0.0.7 lib/omniauth/strategies/cas/configuration.rb
omniauth-cas-0.0.6 lib/omniauth/strategies/cas/configuration.rb
omniauth-cas-0.0.6.alpha lib/omniauth/strategies/cas/configuration.rb
omniauth-cas-0.0.5 lib/omniauth/strategies/cas/configuration.rb
omniauth-cas-0.0.4 lib/omniauth/strategies/cas/configuration.rb
omniauth-cas-0.0.3 lib/omniauth/strategies/cas/configuration.rb