PasswordConfirmationMiddlewareController.php 726 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors
  5. * SPDX-License-Identifier: AGPL-3.0-or-later
  6. */
  7. namespace Test\AppFramework\Middleware\Security\Mock;
  8. use OCP\AppFramework\Http\Attribute\PasswordConfirmationRequired;
  9. class PasswordConfirmationMiddlewareController extends \OCP\AppFramework\Controller {
  10. public function testNoAnnotationNorAttribute() {
  11. }
  12. /**
  13. * @TestAnnotation
  14. */
  15. public function testDifferentAnnotation() {
  16. }
  17. /**
  18. * @PasswordConfirmationRequired
  19. */
  20. public function testAnnotation() {
  21. }
  22. #[PasswordConfirmationRequired]
  23. public function testAttribute() {
  24. }
  25. #[PasswordConfirmationRequired]
  26. public function testSSO() {
  27. }
  28. }