You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Docs/Documentation/Authentication.md
+32-37Lines changed: 32 additions & 37 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -77,19 +77,21 @@ The ``skipTwoFactorVerify`` option is used to skip the two factor flow for a giv
77
77
Identifiers
78
78
-----------
79
79
80
-
The identifiers are defined to work correctly with the default authenticators, we are using these identifiers:
80
+
The identifiers are defined to work correctly with the default authenticators. We are using these identifiers:
81
81
82
-
-``Authentication.Password``, for ``Form`` authenticator
83
-
-``CakeDC/Users.Social``, for ``Social`` and ``SocialPendingEmail`` authenticators
84
-
-``Authentication.Token``, for ``Token`` authenticator
82
+
-`Authentication.Password`, for `Form` authenticator
83
+
-`CakeDC/Users.Social`, for `Social` and `SocialPendingEmail` authenticators
84
+
-`Authentication.Token`, for `Token` authenticator
85
85
86
-
As you add more authenticators you may also need to add other identifiers, please see [the identifiers available in the official CakePHP Authentication plugin documentation](https://book.cakephp.org/authentication/2/en/identifiers.html).
86
+
As you add more authenticators you may also need to add other identifiers. Please see [the identifiers available in the official CakePHP Authentication plugin documentation](https://book.cakephp.org/authentication/3/en/identifiers.html).
87
87
88
-
The default list for ``Auth.Identifiers`` is:
88
+
> **Note:** Configuring identifiers globally via `Auth.Identifiers` is deprecated. Please move each identifier's configuration into the `identifier` key within its specific authenticator under `Auth.Authenticators`.
89
+
90
+
The default list for `Auth.Authenticators.Form.identifier` is:
89
91
90
92
```php
91
-
[
92
-
'Password' => [
93
+
'identifier' => [
94
+
'Authentication.Password' => [
93
95
'className' => 'Authentication.Password',
94
96
'fields' => [
95
97
'username' => ['username', 'email'],
@@ -100,49 +102,42 @@ The default list for ``Auth.Identifiers`` is:
100
102
'finder' => 'active'
101
103
],
102
104
],
103
-
"Social" => [
104
-
'className' => 'CakeDC/Users.Social',
105
-
'authFinder' => 'active'
106
-
],
107
-
'Token' => [
108
-
'className' => 'Authentication.Token',
109
-
'tokenField' => 'api_token',
110
-
'resolver' => [
111
-
'className' => 'Authentication.Orm',
112
-
'finder' => 'active'
113
-
],
114
-
]
115
105
]
116
106
```
117
107
118
-
These identifiers are loaded by the ``\CakeDC\Users\Loader\AuthenticationServiceLoader`` class in the ``loadIdentifiers`` method. See [Authentication Service Loader](#authentication-service-loader) on how to adjust it to your needs.
108
+
These identifiers are loaded by the `\CakeDC\Users\Loader\AuthenticationServiceLoader` class. See [Authentication Service Loader](#authentication-service-loader) on how to adjust it to your needs.
119
109
120
110
Account lockout policy
121
111
----------------------
122
112
Lock a users account after a number of failed password attempts in a certain time window.
123
113
124
-
To enable this updated your config/users.php file with:
114
+
To enable this, update your `config/users.php` file with:
0 commit comments