Skip to content

Commit bfce91b

Browse files
committed
Fixing minor comments
1 parent 9e411fe commit bfce91b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cookbook/security/guard-api-key.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ that to authenticate the user. To do this, create a class that extends
4646
return;
4747
}
4848

49-
return [
49+
return array(
5050
'token' => $token,
51-
];
51+
);
5252
}
5353

5454
public function authenticate($credentials, UserProviderInterface $userProvider)
@@ -241,7 +241,7 @@ and your new ``app.token_authenticator`` authenticator:
241241
'pattern' => '^/',
242242
'stateless' => true,
243243
'anonymous' => true,
244-
'simple_preauth' => array(
244+
'guard' => array(
245245
'authenticators' => array(
246246
'app.token_authenticator'
247247
),

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy