Class: SamlSp::HttpBasicAuthConfig
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
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
|
#promiscuous ⇒ Object
98
99
100
|
# File 'lib/saml_sp/config.rb', line 98
def promiscuous
@promiscuous = true
end
|
#valid? ⇒ Boolean
110
111
112
|
# File 'lib/saml_sp/config.rb', line 110
def valid?
(@realm || @promiscuous) && @user_id && @password
end
|