Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd1774f4

Browse files
committed
Merge branch '6.4' into 7.0
* 6.4: [Security] alway use getUserIdentifier in InMemoryTokenProvider Update phpdoc to not reference removed classes [Security] Remove isAuthenticated and setAuthenticated token methods in tests
2 parents7288b84 +11adee9 commitd1774f4

File tree

5 files changed

+3
-17
lines changed

5 files changed

+3
-17
lines changed

‎src/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/Factory/AbstractFactory.php‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@
1616
useSymfony\Component\DependencyInjection\ContainerBuilder;
1717

1818
/**
19-
* AbstractFactory is the base class for all classes inheriting from
20-
* AbstractAuthenticationListener.
21-
*
2219
* @author Fabien Potencier <fabien@symfony.com>
2320
* @author Lukas Kahwe Smith <smith@pooteeweet.org>
2421
* @author Johannes M. Schmitt <schmittjoh@gmail.com>

‎src/Symfony/Component/Security/Core/Authentication/RememberMe/InMemoryTokenProvider.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public function updateToken(string $series, #[\SensitiveParameter] string $token
3939

4040
$token =newPersistentToken(
4141
$this->tokens[$series]->getClass(),
42-
method_exists($this->tokens[$series],'getUserIdentifier') ?$this->tokens[$series]->getUserIdentifier() :$this->tokens[$series]->getUsername(),
42+
$this->tokens[$series]->getUserIdentifier(),
4343
$series,
4444
$tokenValue,
4545
$lastUsed

‎src/Symfony/Component/Security/Http/Authentication/AuthenticationFailureHandlerInterface.php‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,7 @@
2727
interface AuthenticationFailureHandlerInterface
2828
{
2929
/**
30-
* This is called when an interactive authentication attempt fails. This is
31-
* called by authentication listeners inheriting from
32-
* AbstractAuthenticationListener.
30+
* This is called when an interactive authentication attempt fails.
3331
*/
3432
publicfunctiononAuthenticationFailure(Request$request,AuthenticationException$exception):Response;
3533
}

‎src/Symfony/Component/Security/Http/Firewall/LogoutListener.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public function supports(Request $request): ?bool
6666
* validate the request.
6767
*
6868
* @throws LogoutException if the CSRF token is invalid
69-
* @throws \RuntimeException if theLogoutSuccessHandlerInterface instance does notreturn a response
69+
* @throws \RuntimeException if theLogoutEvent listener does notset a response
7070
*/
7171
publicfunctionauthenticate(RequestEvent$event):void
7272
{

‎src/Symfony/Component/Security/Http/Tests/Firewall/ContextListenerTest.php‎

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -557,15 +557,6 @@ public function getUserIdentifier(): string
557557
return$this->getUserIdentifier();
558558
}
559559

560-
publicfunctionisAuthenticated():bool
561-
{
562-
returntrue;
563-
}
564-
565-
publicfunctionsetAuthenticated(bool$isAuthenticated)
566-
{
567-
}
568-
569560
publicfunctioneraseCredentials():void
570561
{
571562
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp