Skip to content

Commit c4d19e9

Browse files
committed
minor symfony#48414 [Security] Add missing deprecations to UPGRADE-6.2.md file (moismailzai)
This PR was submitted for the 6.3 branch but it was merged into the 6.2 branch instead. Discussion ---------- [Security] Add missing deprecations to `UPGRADE-6.2.md` file | Q | A | ------------- | --- | Branch? | 6.2 | Bug fix? | no | New feature? | no | Deprecations? | yes | Tickets | n/a | License | MIT | Doc PR | n/a Add a note about a deprecated property and its replacement. note the deprecation to `Security::LAST_USERNAME` Commits ------- 591e5cd Update UPGRADE-6.2.md
2 parents 40731aa + 591e5cd commit c4d19e9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

UPGRADE-6.2.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,10 @@ Security
8686
* Add maximum username length enforcement of 4096 characters in `UserBadge` to
8787
prevent [session storage flooding](https://symfony.com/blog/cve-2016-4423-large-username-storage-in-session)
8888
* Deprecate the `Symfony\Component\Security\Core\Security` class and service, use `Symfony\Bundle\SecurityBundle\Security\Security` instead
89+
* Deprecate the `Symfony\Bundle\SecurityBundle\Security\Security::ACCESS_DENIED_ERROR` property, use `Symfony\Component\Security\Http\SecurityRequestAttributes::ACCESS_DENIED_ERROR` instead
90+
* Deprecate the `Symfony\Bundle\SecurityBundle\Security\Security::AUTHENTICATION_ERROR` property, use `Symfony\Component\Security\Http\SecurityRequestAttributes::AUTHENTICATION_ERROR` instead
91+
* Deprecate the `Symfony\Bundle\SecurityBundle\Security\Security::LAST_USERNAME` property, use `Symfony\Component\Security\Http\SecurityRequestAttributes::LAST_USERNAME` instead
92+
* Deprecate the `Symfony\Bundle\SecurityBundle\Security\Security::MAX_USERNAME_LENGTH` property, use `Symfony\Component\Security\Http\Authenticator\Passport\Badge\UserBadge::MAX_USERNAME_LENGTH` instead
8993
* Passing empty username or password parameter when using `JsonLoginAuthenticator` is not supported anymore
9094
* Add `$lifetime` parameter to `LoginLinkHandlerInterface::createLoginLink()`
9195
* Change the signature of `TokenStorageInterface::setToken()` to `setToken(?TokenInterface $token)`

0 commit comments

Comments
 (0)