1
0

IActivatableByAdmin.php 727 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 activatable 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 IActivatableByAdmin extends IProvider {
  17. /**
  18. * Enable this provider for the given user.
  19. *
  20. * @param IUser $user the user to activate this provider for
  21. *
  22. * @return void
  23. *
  24. * @since 15.0.0
  25. */
  26. public function enableFor(IUser $user);
  27. }