This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
symfony/src/Symfony/Component/Security/Http/Session/SessionAuthenticationStrategyInterface.php

35 lines
1021 B
PHP
Raw Normal View History

<?php
2011-05-31 09:57:06 +01:00
/*
2012-03-31 22:00:32 +01:00
* This file is part of the Symfony package.
2011-05-31 09:57:06 +01:00
*
* (c) Fabien Potencier <fabien@symfony.com>
*
2012-03-31 22:00:32 +01:00
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
2011-05-31 09:57:06 +01:00
*/
namespace Symfony\Component\Security\Http\Session;
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
use Symfony\Component\HttpFoundation\Request;
2011-01-27 07:34:19 +00:00
/**
2014-12-21 17:00:50 +00:00
* SessionAuthenticationStrategyInterface.
2011-01-27 07:34:19 +00:00
*
* Implementation are responsible for updating the session after an interactive
* authentication attempt was successful.
*
* @author Johannes M. Schmitt <schmittjoh@gmail.com>
*/
interface SessionAuthenticationStrategyInterface
{
2011-01-27 07:34:19 +00:00
/**
* This performs any necessary changes to the session.
*
* This method should be called before the TokenStorage is populated with a
* Token. It should be used by authentication listeners when a session is used.
2011-01-27 07:34:19 +00:00
*/
2012-07-09 13:50:58 +01:00
public function onAuthentication(Request $request, TokenInterface $token);
2011-06-08 11:16:48 +01:00
}