Slide 24
Slide 24 text
ิXBSEFOͷ@QFSGPSN@BVUIFOUJDBUJPO
JSC NBJO
TQFBLFSQSFTFOUBUJPOTVQQMFNFOU XBSEFO@QFSGPSN@BVUIFOUJDBUJPO
def _perform_authentication(*args)
scope, opts = _retrieve_scope_and_opts(args)
user = nil
# 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.
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
ೝূࡁͳΒVTFSϝιουͰ
ೝূࡁͷϦιʔε͕ฦͬͯ
ૣظSFUVSO͞ΕΔͷͰ
ೝূॲཧ࣮ߦ͞Εͳ͍