lib/iauthu/authenticator/chained.rb
# Append an authenticator to the authentication chain. Optionally specifiy
# if the authenticator is required or sufficient for the chain. required and
# sufficient both default to false.
#   chain.add MyAuth.new  # MyAuth is not required and not sufficient
#   chain.add MyAuth.new, :required => true, :sufficient => false
Append an authenticator to the authentication chain. Optionally specifiy
if the authenticator is required or sufficient for the chain. required and
sufficient both default to false.
Append an authenticator to the authentication chain . Optionally specifiy if the authenticator is required or sufficient for the chain . required and sufficient both default to false .
def add(authenticator, opts={})
        authenticator.required = !!opts["required"] if opts["required"] && authenticator.respond_to?('required=')
        authenticator.sufficient = !!opts["sufficient"] if opts ["sufficient"] && authenticator.respond_to?('sufficient=')
        @chain << authenticator
      end
def add ( authenticator , opts = { } ) authenticator . required = ! ! opts [ "required" ] if opts [ "required" ] && authenticator . respond_to? ( 'required=' ) authenticator . sufficient = ! ! opts [ "sufficient" ] if opts [ "sufficient" ] && authenticator . respond_to? ( 'sufficient=' ) @chain << authenticator end
Append an authenticator to the authentication chain.
Append an authenticator to the authentication chain .
authenticator
<not_specific>
opts
<not_specific>