3.2 KiB
3.2 KiB
CHANGELOG
6.4
- Make
PersistentTokenimmutable - Deprecate accepting only
DateTimeforTokenProviderInterface::updateToken(), useDateTimeInterfaceinstead
6.3
- Add
AttributesBasedUserProviderInterfaceto allow$attributesoptional argument onloadUserByIdentifier - Add
OidcUserwith OIDC support forOidcUserInfoTokenHandler
6.2
- Deprecate the
Securityclass, useSymfony\Bundle\SecurityBundle\Securityinstead - Change the signature of
TokenStorageInterface::setToken()tosetToken(?TokenInterface $token) - Deprecate calling
TokenStorage::setToken()without arguments - Add a
ChainUserCheckerto allow calling multiple user checkers for a firewall
6.0
TokenInterfacedoes not extendSerializableanymore- Remove all classes in the
Core\Encoder\sub-namespace, use thePasswordHashercomponent instead - Remove methods
getPassword()andgetSalt()fromUserInterface, usePasswordAuthenticatedUserInterfaceorLegacyPasswordAuthenticatedUserInterfaceinstead AccessDecisionManagerrequires the strategy to be passed as in instance ofAccessDecisionStrategyInterface
5.4.21
- [BC BREAK]
AccessDecisionStrategyTestCase::provideStrategyTests()is now static
5.4
- Add a
CacheableVoterInterfacefor voters that vote only on identified attributes and subjects - Deprecate
AuthenticationEvents::AUTHENTICATION_FAILURE, use theLoginFailureEventinstead - Deprecate
AnonymousToken, as the related authenticator was deprecated in 5.3 - Deprecate
Token::getCredentials(), tokens should no longer contain credentials (as they represent authenticated sessions) - Deprecate returning
string|\StringablefromToken::getUser()(it must return aUserInterface) - Deprecate
AuthenticatedVoter::IS_AUTHENTICATED_ANONYMOUSLYandAuthenticatedVoter::IS_ANONYMOUS, useAuthenticatedVoter::IS_AUTHENTICATED_FULLYorAuthenticatedVoter::IS_AUTHENTICATEDinstead. - Deprecate
AuthenticationTrustResolverInterface::isAnonymous()and theis_anonymous()expression function as anonymous no longer exists in version 6, use theisFullFledged()or the newisAuthenticated()instead if you want to check if the request is (fully) authenticated. - Deprecate the
$authenticationManagerargument of theAuthorizationCheckerconstructor - Deprecate setting the
$alwaysAuthenticateargument totrueand not setting the$exceptionOnNoTokenargument tofalseofAuthorizationChecker - Deprecate methods
TokenInterface::isAuthenticated()andsetAuthenticated, return null from "getUser()" instead when a token is not authenticated - Add
AccessDecisionStrategyInterfaceto allow custom access decision strategies - Add access decision strategies
AffirmativeStrategy,ConsensusStrategy,PriorityStrategy,UnanimousStrategy - Deprecate passing the strategy as string to
AccessDecisionManager, pass an instance ofAccessDecisionStrategyInterfaceinstead - Flag
AccessDecisionManageras@final
5.3
The CHANGELOG for version 5.3 and earlier can be found at https://github.com/symfony/symfony/blob/5.3/src/Symfony/Component/Security/CHANGELOG.md