iapachebackend.php 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <?php
  2. /**
  3. * @author Morris Jobke <hey@morrisjobke.de>
  4. * @author Thomas Müller <thomas.mueller@tmit.eu>
  5. *
  6. * @copyright Copyright (c) 2015, ownCloud, Inc.
  7. * @license AGPL-3.0
  8. *
  9. * This code is free software: you can redistribute it and/or modify
  10. * it under the terms of the GNU Affero General Public License, version 3,
  11. * as published by the Free Software Foundation.
  12. *
  13. * This program is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU Affero General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU Affero General Public License, version 3,
  19. * along with this program. If not, see <http://www.gnu.org/licenses/>
  20. *
  21. */
  22. /**
  23. * Public interface of ownCloud for apps to use.
  24. * Authentication/IApacheBackend interface
  25. */
  26. // use OCP namespace for all classes that are considered public.
  27. // This means that they should be used by apps instead of the internal ownCloud classes
  28. namespace OCP\Authentication;
  29. interface IApacheBackend {
  30. /**
  31. * In case the user has been authenticated by Apache true is returned.
  32. *
  33. * @return boolean whether Apache reports a user as currently logged in.
  34. */
  35. public function isSessionActive();
  36. /**
  37. * Creates an attribute which is added to the logout hyperlink. It can
  38. * supply any attribute(s) which are valid for <a>.
  39. *
  40. * @return string with one or more HTML attributes.
  41. */
  42. public function getLogoutAttribute();
  43. /**
  44. * Return the id of the current user
  45. * @return string
  46. */
  47. public function getCurrentUserId();
  48. }