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:



107
108
109
110
111
112
113
# File 'lib/saml_sp/config.rb', line 107

def interpret(blk, filename = nil)
  super

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

  self
end

#promiscuousObject



103
104
105
# File 'lib/saml_sp/config.rb', line 103

def promiscuous
  @promiscuous = true
end

#valid?Boolean

Returns:

  • (Boolean)


115
116
117
# File 'lib/saml_sp/config.rb', line 115

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