lib/warden/proxy.rb
# An accessor to the winning strategy
# :api: private
An accessor to the winning strategy
:api: private
An accessor to the winning strategy : api : private
def _perform_authentication(*args)
      scope, opts = _retrieve_scope_and_opts(args)
      user = nil
      return user, opts if user = user(opts.merge(:scope => scope))
      _run_strategies_for(scope, args)
      if winning_strategy && winning_strategy.successful?
        opts[:store] = opts.fetch(:store, winning_strategy.store?)
        set_user(winning_strategy.user, opts.merge!(:event => :authentication))
      end
      [@users[scope], opts]
    end
def _perform_authentication ( * args ) scope , opts = _retrieve_scope_and_opts ( args ) user = nil return user , opts if user = user ( opts . merge ( :scope => scope ) ) _run_strategies_for ( scope , args ) if winning_strategy && winning_strategy . successful? opts [ :store ] = opts . fetch ( :store , winning_strategy . store? ) set_user ( winning_strategy . user , opts . merge! ( :event => :authentication ) ) end [ @users [ scope ] , opts ] end
An accessor to the winning strategy
:api: private
An accessor to the winning strategy : api : private
# Look for an existing user in the session for this scope. # If there was no user in the session, see if we can get one from the request.
args
<not_specific>