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
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
|
#promiscuous ⇒ Object
103
104
105
|
# File 'lib/saml_sp/config.rb', line 103
def promiscuous
@promiscuous = true
end
|
#valid? ⇒ Boolean
115
116
117
|
# File 'lib/saml_sp/config.rb', line 115
def valid?
(@realm || @promiscuous) && @user_id && @password
end
|