Class: SamlSp::HttpBasicAuthConfig

Inherits:
ConfigBlock show all
Defined in:
lib/saml_sp/config.rb

Constant Summary

Constants inherited from ConfigBlock

ConfigBlock::NOVAL_MARKER

Instance Method Summary collapse

Methods inherited from ConfigBlock

inherited

Instance Method Details

#interpret(blk, filename = nil) ⇒ Object

Raises:



102
103
104
105
106
107
108
# File 'lib/saml_sp/config.rb', line 102

def interpret(blk, filename = nil)
  super

  raise ConfigurationError, "Incomplete HTTP basic auth credentials" unless valid? 

  self
end

#promiscuousObject



98
99
100
# File 'lib/saml_sp/config.rb', line 98

def promiscuous
  @promiscuous = true
end

#valid?Boolean

Returns:

  • (Boolean)


110
111
112
# File 'lib/saml_sp/config.rb', line 110

def valid?
  (@realm || @promiscuous) && @user_id && @password
end