1
0

IApacheBackend.php 911 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. /**
  3. * SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
  4. * SPDX-FileCopyrightText: 2016 ownCloud, Inc.
  5. * SPDX-License-Identifier: AGPL-3.0-only
  6. */
  7. // use OCP namespace for all classes that are considered public.
  8. // This means that they should be used by apps instead of the internal Nextcloud classes
  9. namespace OCP\Authentication;
  10. /**
  11. * Interface IApacheBackend
  12. *
  13. * @since 6.0.0
  14. */
  15. interface IApacheBackend {
  16. /**
  17. * In case the user has been authenticated by a module true is returned.
  18. *
  19. * @return boolean whether the module reports a user as currently logged in.
  20. * @since 6.0.0
  21. */
  22. public function isSessionActive();
  23. /**
  24. * Gets the current logout URL
  25. *
  26. * @return string
  27. * @since 12.0.3
  28. */
  29. public function getLogoutUrl();
  30. /**
  31. * Return the id of the current user
  32. * @return string
  33. * @since 6.0.0
  34. */
  35. public function getCurrentUserId();
  36. }