1
0

IDeactivatableByAdmin.php 730 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * SPDX-FileCopyrightText: 2018 Nextcloud GmbH and Nextcloud contributors
  5. * SPDX-License-Identifier: AGPL-3.0-or-later
  6. */
  7. namespace OCP\Authentication\TwoFactorAuth;
  8. use OCP\IUser;
  9. /**
  10. * Marks a 2FA provider as activale by the administrator. This means that an
  11. * admin can activate this provider without user interaction. The provider,
  12. * therefore, must not require any user-provided configuration.
  13. *
  14. * @since 15.0.0
  15. */
  16. interface IDeactivatableByAdmin extends IProvider {
  17. /**
  18. * Disable this provider for the given user.
  19. *
  20. * @param IUser $user the user to deactivate this provider for
  21. *
  22. * @return void
  23. *
  24. * @since 15.0.0
  25. */
  26. public function disableFor(IUser $user);
  27. }