Remove experimental flag from the authenticator system 🚀

This commit is contained in:
Robin Chalas 2021-04-14 10:40:21 +02:00
parent cc29772236
commit a2f5693c5e
50 changed files with 4 additions and 79 deletions

View File

@ -4,6 +4,7 @@ CHANGELOG
5.3
---
* The authenticator system is no longer experimental
* Login Link functionality is no longer experimental
* Add `required_badges` firewall config option
* [BC break] Add `login_throttling.lock_factory` setting defaulting to `null` (instead of `lock.factory`)

View File

@ -15,8 +15,6 @@ use Symfony\Component\DependencyInjection\ContainerBuilder;
/**
* @author Wouter de Jong <wouter@wouterj.nl>
*
* @experimental in 5.3
*/
interface AuthenticatorFactoryInterface
{

View File

@ -19,7 +19,6 @@ use Symfony\Component\DependencyInjection\ContainerBuilder;
* @author Wouter de Jong <wouter@wouterj.nl>
*
* @internal
* @experimental in 5.3
*/
class CustomAuthenticatorFactory implements AuthenticatorFactoryInterface, SecurityFactoryInterface
{

View File

@ -23,8 +23,6 @@ use Symfony\Component\Security\Http\RememberMe\RememberMeHandlerInterface;
* Decorates {@see RememberMeHandlerInterface} for the current firewall.
*
* @author Wouter de Jong <wouter@wouterj.nl>
*
* @experimental in 5.3
*/
final class FirewallAwareRememberMeHandler implements RememberMeHandlerInterface
{

View File

@ -26,7 +26,6 @@ use Symfony\Component\Security\Http\Authenticator\AuthenticatorInterface;
* @author Wouter de Jong <wouter@wouterj.nl>
*
* @final
* @experimental in 5.3
*/
class UserAuthenticator implements UserAuthenticatorInterface
{

View File

@ -4,6 +4,7 @@ CHANGELOG
5.3
---
* The authenticator system is no longer experimental
* Added caseSensitive option for attribute keys in the Entry class.
5.1.0

View File

@ -28,7 +28,6 @@ use Symfony\Component\Security\Http\Authenticator\Passport\PassportInterface;
* @author Wouter de Jong <wouter@wouterj.nl>
*
* @final
* @experimental in 5.1
*/
class LdapAuthenticator implements AuthenticatorInterface
{

View File

@ -21,7 +21,6 @@ use Symfony\Component\Security\Http\Authenticator\Passport\Badge\BadgeInterface;
* @author Wouter de Jong <wouter@wouterj.nl>
*
* @final
* @experimental in 5.1
*/
class LdapBadge implements BadgeInterface
{

View File

@ -6,6 +6,7 @@ The CHANGELOG for version 5.4 and newer can be found in the security sub-package
5.3
---
* The authenticator system is no longer experimental
* Login Link functionality is no longer experimental
* Add `RememberMeConditionsListener` to check if remember me is requested and supported, and set priority of `RememberMeListener` to -63
* Add `RememberMeHandlerInterface` and implementations, used as a replacement of `RememberMeServicesInterface` when using the AuthenticatorManager

View File

@ -16,8 +16,6 @@ use Psr\Cache\CacheItemPoolInterface;
/**
* @author Ryan Weaver <ryan@symfonycasts.com>
*
* @experimental in 5.2
*
* @final
*/
final class ExpiredSignatureStorage

View File

@ -39,8 +39,6 @@ use Symfony\Contracts\EventDispatcher\EventDispatcherInterface;
* @author Wouter de Jong <wouter@wouterj.nl>
* @author Ryan Weaver <ryan@symfonycasts.com>
* @author Amaury Leroux de Lens <amaury@lerouxdelens.com>
*
* @experimental in 5.3
*/
class AuthenticatorManager implements AuthenticatorManagerInterface, UserAuthenticatorInterface
{

View File

@ -18,8 +18,6 @@ use Symfony\Component\Security\Http\Firewall\FirewallListenerInterface;
/**
* @author Wouter de Jong <wouter@wouterj.nl>
* @author Ryan Weaver <ryan@symfonycasts.com>
*
* @experimental in 5.3
*/
interface AuthenticatorManagerInterface
{

View File

@ -19,8 +19,6 @@ use Symfony\Component\Security\Http\Authenticator\Passport\Badge\BadgeInterface;
/**
* @author Wouter de Jong <wouter@wouterj.nl>
*
* @experimental in 5.3
*/
interface UserAuthenticatorInterface
{

View File

@ -21,8 +21,6 @@ use Symfony\Component\Security\Http\Authenticator\Token\PostAuthenticationToken;
* An optional base class that creates the necessary tokens for you.
*
* @author Ryan Weaver <ryan@symfonycasts.com>
*
* @experimental in 5.3
*/
abstract class AbstractAuthenticator implements AuthenticatorInterface
{

View File

@ -22,8 +22,6 @@ use Symfony\Component\Security\Http\EntryPoint\AuthenticationEntryPointInterface
* A base class to make form login authentication easier!
*
* @author Ryan Weaver <ryan@symfonycasts.com>
*
* @experimental in 5.3
*/
abstract class AbstractLoginFormAuthenticator extends AbstractAuthenticator implements AuthenticationEntryPointInterface, InteractiveAuthenticatorInterface
{

View File

@ -33,7 +33,6 @@ use Symfony\Component\Security\Http\Authenticator\Passport\SelfValidatingPasspor
* @author Fabien Potencier <fabien@symfony.com>
*
* @internal
* @experimental in 5.3
*/
abstract class AbstractPreAuthenticatedAuthenticator implements InteractiveAuthenticatorInterface
{

View File

@ -23,8 +23,6 @@ use Symfony\Component\Security\Http\Authenticator\Passport\PassportInterface;
* @author Ryan Weaver <ryan@symfonycasts.com>
* @author Amaury Leroux de Lens <amaury@lerouxdelens.com>
* @author Wouter de Jong <wouter@wouterj.nl>
*
* @experimental in 5.3
*/
interface AuthenticatorInterface
{

View File

@ -18,11 +18,9 @@ use Symfony\Component\HttpKernel\HttpKernelInterface;
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
use Symfony\Component\Security\Core\Authentication\Token\UsernamePasswordToken;
use Symfony\Component\Security\Core\Exception\AuthenticationException;
use Symfony\Component\Security\Core\Exception\AuthenticationServiceException;
use Symfony\Component\Security\Core\Exception\BadCredentialsException;
use Symfony\Component\Security\Core\Security;
use Symfony\Component\Security\Core\User\PasswordUpgraderInterface;
use Symfony\Component\Security\Core\User\UserInterface;
use Symfony\Component\Security\Core\User\UserProviderInterface;
use Symfony\Component\Security\Http\Authentication\AuthenticationFailureHandlerInterface;
use Symfony\Component\Security\Http\Authentication\AuthenticationSuccessHandlerInterface;
@ -41,7 +39,6 @@ use Symfony\Component\Security\Http\ParameterBagUtils;
* @author Fabien Potencier <fabien@symfony.com>
*
* @final
* @experimental in 5.3
*/
class FormLoginAuthenticator extends AbstractLoginFormAuthenticator
{

View File

@ -17,9 +17,7 @@ use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
use Symfony\Component\Security\Core\Authentication\Token\UsernamePasswordToken;
use Symfony\Component\Security\Core\Exception\AuthenticationException;
use Symfony\Component\Security\Core\Exception\AuthenticationServiceException;
use Symfony\Component\Security\Core\User\PasswordUpgraderInterface;
use Symfony\Component\Security\Core\User\UserInterface;
use Symfony\Component\Security\Core\User\UserProviderInterface;
use Symfony\Component\Security\Http\Authenticator\Passport\Badge\PasswordUpgradeBadge;
use Symfony\Component\Security\Http\Authenticator\Passport\Badge\UserBadge;
@ -33,7 +31,6 @@ use Symfony\Component\Security\Http\EntryPoint\AuthenticationEntryPointInterface
* @author Fabien Potencier <fabien@symfony.com>
*
* @final
* @experimental in 5.3
*/
class HttpBasicAuthenticator implements AuthenticatorInterface, AuthenticationEntryPointInterface
{

View File

@ -21,11 +21,9 @@ use Symfony\Component\PropertyAccess\PropertyAccessorInterface;
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
use Symfony\Component\Security\Core\Authentication\Token\UsernamePasswordToken;
use Symfony\Component\Security\Core\Exception\AuthenticationException;
use Symfony\Component\Security\Core\Exception\AuthenticationServiceException;
use Symfony\Component\Security\Core\Exception\BadCredentialsException;
use Symfony\Component\Security\Core\Security;
use Symfony\Component\Security\Core\User\PasswordUpgraderInterface;
use Symfony\Component\Security\Core\User\UserInterface;
use Symfony\Component\Security\Core\User\UserProviderInterface;
use Symfony\Component\Security\Http\Authentication\AuthenticationFailureHandlerInterface;
use Symfony\Component\Security\Http\Authentication\AuthenticationSuccessHandlerInterface;
@ -45,7 +43,6 @@ use Symfony\Contracts\Translation\TranslatorInterface;
* @author Wouter de Jong <wouter@wouterj.nl>
*
* @final
* @experimental in 5.3
*/
class JsonLoginAuthenticator implements InteractiveAuthenticatorInterface
{

View File

@ -15,8 +15,6 @@ namespace Symfony\Component\Security\Http\Authenticator\Passport\Badge;
* Passport badges allow to add more information to a passport (e.g. a CSRF token).
*
* @author Wouter de Jong <wouter@wouterj.nl>
*
* @experimental in 5.3
*/
interface BadgeInterface
{

View File

@ -21,7 +21,6 @@ use Symfony\Component\Security\Http\EventListener\CsrfProtectionListener;
* @author Wouter de Jong <wouter@wouterj.nl>
*
* @final
* @experimental in 5.3
*/
class CsrfTokenBadge implements BadgeInterface
{

View File

@ -22,7 +22,6 @@ use Symfony\Component\Security\Core\User\PasswordUpgraderInterface;
* @author Wouter de Jong <wouter@wouterj.nl>
*
* @final
* @experimental in 5.3
*/
class PasswordUpgradeBadge implements BadgeInterface
{

View File

@ -23,7 +23,6 @@ use Symfony\Component\Security\Http\Authenticator\AbstractPreAuthenticatedAuthen
* @author Wouter de Jong <wouter@wouterj.nl>
*
* @final
* @experimental in 5.3
*/
class PreAuthenticatedUserBadge implements BadgeInterface
{

View File

@ -21,7 +21,6 @@ namespace Symfony\Component\Security\Http\Authenticator\Passport\Badge;
* @author Wouter de Jong <wouter@wouterj.nl>
*
* @final
* @experimental in 5.3
*/
class RememberMeBadge implements BadgeInterface
{

View File

@ -22,8 +22,6 @@ use Symfony\Component\Security\Http\EventListener\UserProviderListener;
* "user loader" to load the related User object.
*
* @author Wouter de Jong <wouter@wouterj.nl>
*
* @experimental in 5.3
*/
class UserBadge implements BadgeInterface
{
@ -67,7 +65,7 @@ class UserBadge implements BadgeInterface
$this->user = ($this->userLoader)($this->userIdentifier);
if (!$this->user instanceof UserInterface) {
throw new AuthenticationServiceException(sprintf('The user provider must return a UserInterface object, "%s" given.', \get_debug_type($this->user)));
throw new AuthenticationServiceException(sprintf('The user provider must return a UserInterface object, "%s" given.', get_debug_type($this->user)));
}
}

View File

@ -18,8 +18,6 @@ use Symfony\Component\Security\Http\Authenticator\Passport\Badge\BadgeInterface;
* credential check of an authenticator.
*
* @author Wouter de Jong <wouter@wouterj.nl>
*
* @experimental in 5.3
*/
interface CredentialsInterface extends BadgeInterface
{

View File

@ -20,7 +20,6 @@ use Symfony\Component\Security\Core\User\UserInterface;
* @author Wouter de Jong <wouter@wouterj.nl>
*
* @final
* @experimental in 5.3
*/
class CustomCredentials implements CredentialsInterface
{

View File

@ -22,7 +22,6 @@ use Symfony\Component\Security\Core\Exception\LogicException;
* @author Wouter de Jong <wouter@wouterj.nl>
*
* @final
* @experimental in 5.3
*/
class PasswordCredentials implements CredentialsInterface
{

View File

@ -20,8 +20,6 @@ use Symfony\Component\Security\Http\Authenticator\Passport\Credentials\Credentia
* The default implementation for passports.
*
* @author Wouter de Jong <wouter@wouterj.nl>
*
* @experimental in 5.3
*/
class Passport implements UserPassportInterface
{

View File

@ -21,8 +21,6 @@ use Symfony\Component\Security\Http\Authenticator\Passport\Badge\BadgeInterface;
* passport.
*
* @author Wouter de Jong <wouter@wouterj.nl>
*
* @experimental in 5.3
*/
interface PassportInterface
{

View File

@ -15,8 +15,6 @@ use Symfony\Component\Security\Http\Authenticator\Passport\Badge\BadgeInterface;
/**
* @author Wouter de Jong <wouter@wouterj.nl>
*
* @experimental in 5.3
*/
trait PassportTrait
{

View File

@ -19,8 +19,6 @@ use Symfony\Component\Security\Http\Authenticator\Passport\Badge\UserBadge;
* API token authentication).
*
* @author Wouter de Jong <wouter@wouterj.nl>
*
* @experimental in 5.3
*/
class SelfValidatingPassport extends Passport
{

View File

@ -18,8 +18,6 @@ use Symfony\Component\Security\Core\User\UserInterface;
* Represents a passport for a Security User.
*
* @author Wouter de Jong <wouter@wouterj.nl>
*
* @experimental in 5.3
*/
interface UserPassportInterface extends PassportInterface
{

View File

@ -25,7 +25,6 @@ use Symfony\Component\Security\Core\User\UserProviderInterface;
* @author Fabien Potencier <fabien@symfony.com>
*
* @final
* @experimental in 5.3
*/
class X509Authenticator extends AbstractPreAuthenticatedAuthenticator
{

View File

@ -30,7 +30,6 @@ use Symfony\Component\Security\Http\Event\CheckPassportEvent;
* @author Wouter de Jong <wouter@driveamber.com>
*
* @final
* @experimental in 5.3
*/
class CheckCredentialsListener implements EventSubscriberInterface
{

View File

@ -36,7 +36,6 @@ use Symfony\Component\Security\Http\RememberMe\RememberMeHandlerInterface;
* @author Wouter de Jong <wouter@wouterj.nl>
*
* @final
* @experimental in 5.3
*/
class CheckRememberMeConditionsListener implements EventSubscriberInterface
{

View File

@ -22,7 +22,6 @@ use Symfony\Component\Security\Http\Event\CheckPassportEvent;
* @author Wouter de Jong <wouter@wouterj.nl>
*
* @final
* @experimental in 5.3
*/
class CsrfProtectionListener implements EventSubscriberInterface
{

View File

@ -21,8 +21,6 @@ use Symfony\Component\Security\Http\Event\CheckPassportEvent;
/**
* @author Wouter de Jong <wouter@wouterj.nl>
*
* @experimental in 5.3
*/
final class LoginThrottlingListener implements EventSubscriberInterface
{

View File

@ -25,7 +25,6 @@ use Symfony\Component\Security\Http\Event\LoginSuccessEvent;
* @author Wouter de Jong <wouter@wouterj.nl>
*
* @final
* @experimental in 5.3
*/
class PasswordMigratingListener implements EventSubscriberInterface
{

View File

@ -32,7 +32,6 @@ use Symfony\Component\Security\Http\RememberMe\RememberMeHandlerInterface;
* @author Wouter de Jong <wouter@wouterj.nl>
*
* @final
* @experimental in 5.3
*/
class RememberMeListener implements EventSubscriberInterface
{

View File

@ -23,7 +23,6 @@ use Symfony\Component\Security\Http\Event\CheckPassportEvent;
* @author Wouter de Jong <wouter@wouterj.nl>
*
* @final
* @experimental in 5.3
*/
class UserCheckerListener implements EventSubscriberInterface
{

View File

@ -22,7 +22,6 @@ use Symfony\Component\Security\Http\Event\CheckPassportEvent;
* @author Wouter de Jong <wouter@wouterj.nl>
*
* @final
* @experimental in 5.3
*/
class UserProviderListener
{

View File

@ -19,8 +19,6 @@ use Symfony\Component\Security\Http\Authentication\AuthenticatorManagerInterface
* Firewall authentication listener that delegates to the authenticator system.
*
* @author Wouter de Jong <wouter@wouterj.nl>
*
* @experimental in 5.3
*/
class AuthenticatorManagerListener extends AbstractListener
{

View File

@ -23,8 +23,6 @@ use Symfony\Component\Security\Core\Security;
* a limit on username+IP and a (higher) limit on IP.
*
* @author Wouter de Jong <wouter@wouterj.nl>
*
* @experimental in 5.3
*/
final class DefaultLoginRateLimiter extends AbstractRequestRateLimiter
{

View File

@ -20,8 +20,6 @@ use Symfony\Component\Security\Core\User\UserProviderInterface;
/**
* @author Wouter de Jong <wouter@wouterj.nl>
*
* @experimental in 5.3
*/
abstract class AbstractRememberMeHandler implements RememberMeHandlerInterface
{

View File

@ -28,8 +28,6 @@ use Symfony\Component\Security\Core\User\UserProviderInterface;
* {@see SignatureRememberMeHandler} if you don't want to use a database.
*
* @author Wouter de Jong <wouter@wouterj.nl>
*
* @experimental in 5.3
*/
final class PersistentRememberMeHandler extends AbstractRememberMeHandler
{

View File

@ -16,8 +16,6 @@ use Symfony\Component\Security\Core\Exception\AuthenticationException;
/**
* @author Wouter de Jong <wouter@wouterj.nl>
*
* @experimental in 5.3
*/
class RememberMeDetails
{

View File

@ -21,8 +21,6 @@ use Symfony\Component\Security\Core\User\UserInterface;
* {@see AbstractRememberMeHandler} instead.
*
* @author Wouter de Jong <wouter@wouterj.nl>
*
* @experimental in 5.3
*/
interface RememberMeHandlerInterface
{

View File

@ -29,8 +29,6 @@ use Symfony\Component\Security\Core\User\UserProviderInterface;
* if you need this.
*
* @author Wouter de Jong <wouter@wouterj.nl>
*
* @experimental in 5.3
*/
final class SignatureRememberMeHandler extends AbstractRememberMeHandler
{