==================== Two-factor providers ==================== .. sectionauthor:: Christoph Wurst Two-factor auth providers apps are used to plug custom second factors into the Nextcloud core. The following code was taken from the `two-factor test app`_. .. _`two-factor test app`: https://github.com/ChristophWurst/twofactor_test Implementing a simple two-factor auth provider ---------------------------------------------- Two-factor auth providers must implement the ``OCP\Authentication\TwoFactorAuth\IProvider`` interface. The example below shows a minimalistic example of such a provider. .. code-block:: php OCA\TwoFactor_Test\Provider\TwoFactorTestProvider