ICustomLogout.php 494 B

1234567891011121314151617181920212223242526
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * SPDX-FileCopyrightText: 2020 Nextcloud GmbH and Nextcloud contributors
  5. * SPDX-License-Identifier: AGPL-3.0-or-later
  6. */
  7. namespace OCP\User\Backend;
  8. /**
  9. * @since 20.0.0
  10. *
  11. * Allow backends to signal that they handle logout. For example
  12. * SSO providers that also have a SSO logout url
  13. */
  14. interface ICustomLogout {
  15. /**
  16. * @since 20.0.0
  17. *
  18. * The url to redirect to for logout
  19. *
  20. * @return string
  21. */
  22. public function getLogoutUrl(): string;
  23. }