8000 Merge branch '3.4' into 4.4 · symfony/symfony-docs@fed5d8c · GitHub
[go: up one dir, main page]

Skip to content

Commit fed5d8c

Browse files
committed
Merge branch '3.4' into 4.4
* 3.4: Update guard_authentication.rst
2 parents 8281616 + b0e2521 commit fed5d8c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

security/guard_authentication.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ This requires you to implement several methods::
8686

8787
/**
8888
* Called on every request to decide if this authenticator should be
89-
* used for the request. Returning false will cause this authenticator
89+
* used for the request. Returning `false` will cause this authenticator
9090
* to be skipped.
9191
*/
9292
public function supports(Request $request)
@@ -106,7 +106,8 @@ This requires you to implement several methods::
106106
public function getUser($credentials, UserProviderInterface $userProvider)
107107
{
108108
if (null === $credentials) {
109-
// The token header was empty, authentication fails with 401
109+
// The token header was empty, authentication fails with HTTP Status
110+
// Code 401 "Unauthorized"
110111
return null;
111112
}
112113

@@ -134,7 +135,7 @@ This requires you to implement several methods::
134135
public function onAuthenticationFailure(Request $request, AuthenticationException $exception)
135136
{
136137
$data = [
137-
// you may ant to customize or obfuscate the message first
138+
// you may want to customize or obfuscate the message first
138139
'message' => strtr($exception->getMessageKey(), $exception->getMessageData())
139140

140141
// or to translate this message

0 commit comments

Comments
 (0)
0