We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 93563d2 commit 2cd3f35Copy full SHA for 2cd3f35
1 file changed
doc/providers/custom.rst
@@ -33,6 +33,17 @@ authentication token, the user entity and other information.
33
The method has to decide if the user should be asked for two-factor authentication from that provider. In that case
34
return ``true``, otherwise ``false``.
35
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
47
prepareAuthentication
48
~~~~~~~~~~~~~~~~~~~~~
49
0 commit comments