Skip to content

Commit 1356fe7

Browse files
committed
minor #27406 [Security] Add missing upgrade note about GuardAuthenticationListener-related deprecation (DonCallisto)
This PR was merged into the 3.4 branch. Discussion ---------- [Security] Add missing upgrade note about GuardAuthenticationListener-related deprecation | Q | A | ------------- | --- | Branch? | 4.0 | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | yes | Tests pass? | | Fixed tickets | | License | MIT | Doc PR | This https://github.com/symfony/symfony/blob/3.4/src/Symfony/Component/Security/Guard/Firewall/GuardAuthenticationListener.php#L127 was not reported. Commits ------- c09ca94 Update UPGRADE-4.0.md
2 parents 16ebf43 + c09ca94 commit 1356fe7

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

UPGRADE-3.4.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,9 @@ Security
344344

345345
* The `GuardAuthenticatorInterface` has been deprecated and will be removed in 4.0.
346346
Use `AuthenticatorInterface` instead.
347+
348+
* When extending `AbstractGuardAuthenticator` it's deprecated to return `null` from `getCredentials()`.
349+
Return `false` from `supports()` if no credentials available.
347350

348351
SecurityBundle
349352
--------------

UPGRADE-4.0.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -758,6 +758,9 @@ Security
758758

759759
* The `GuardAuthenticatorInterface` interface has been removed.
760760
Use `AuthenticatorInterface` instead.
761+
762+
* When extending `AbstractGuardAuthenticator` getCredentials() cannot return
763+
`null` anymore, return false from `supports()` if no credentials available instead.
761764

762765
SecurityBundle
763766
--------------

src/Symfony/Component/Security/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ CHANGELOG
1616
* deprecated HTTP digest authentication
1717
* Added a new password encoder for the Argon2i hashing algorithm
1818
* deprecated `GuardAuthenticatorInterface` in favor of `AuthenticatorInterface`
19+
* deprecated to return `null` from `getCredentials()` in classes that extend
20+
`AbstractGuardAuthenticator`. Return `false` from `supports()` instead.
1921

2022
3.3.0
2123
-----

0 commit comments

Comments
 (0)