File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,17 @@ authentication token, the user entity and other information.
3333The method has to decide if the user should be asked for two-factor authentication from that provider. In that case
3434return ``true ``, otherwise ``false ``.
3535
36+ needsPreparation
37+ ~~~~~~~~~~~~~~~~
38+
39+ .. code-block :: php
40+
41+ public function needsPreparation(): bool;
42+
43+ The method determines if the provider needs to be prepared. If ``false `` is returned, the ``prepareAuthentication `` will
44+ not be called and the provider is considered "prepared" right from the start. This is valuable for authentication
45+ providers such as TOTP, which can then be used in a stateless firewall.
46+
3647prepareAuthentication
3748~~~~~~~~~~~~~~~~~~~~~
3849
You can’t perform that action at this time.
0 commit comments