8000 minor #13393 Update guard_authentication.rst (ThomasLandauer) · symfony/symfony-docs@b0e2521 · GitHub
[go: up one dir, main page]

Skip to content

Commit b0e2521

Browse files
committed
minor #13393 Update guard_authentication.rst (ThomasLandauer)
This PR was squashed before being merged into the 3.4 branch (closes #13393). Discussion ---------- Update guard_authentication.rst Minor Commits ------- 4fcc154 Update guard_authentication.rst
2 parents f85fcad + 4fcc154 commit b0e2521

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
@@ -174,7 +174,7 @@ This requires you to implement several methods::
174174
{
175175
/**
176176
* Called on every request to decide if this authenticator should be
177-
* used for the request. Returning false will cause this authenticator
177+
* used for the request. Returning `false` will cause this authenticator
178178
* to be skipped.
179179
*/
180180
public function supports(Request $request)
@@ -194,7 +194,8 @@ This requires you to implement several methods::
194194
public function getUser($credentials, UserProviderInterface $userProvider)
195195
{
196196
if (null === $credentials) {
197-
// The token header was empty, authentication fails with 401
197+
// The token header was empty, authentication fails with HTTP Status
198+
// Code 401 "Unauthorized"
198199
return null;
199200
}
200201

@@ -220,7 +221,7 @@ This requires you to implement several methods::
220221
public function onAuthenticationFailure(Request $request, AuthenticationException $exception)
221222
{
222223
$data = [
223-
// you may ant to customize or obfuscate the message first
224+
// you may want to customize or obfuscate the message first
224225
'message' => strtr($exception->getMessageKey(), $exception->getMessageData())
225226

226227
// or to translate this message

0 commit comments

Comments
 (0)
0