1
0

IAlternativeLogin.php 808 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  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\Authentication;
  8. /**
  9. * @since 20.0.0
  10. */
  11. interface IAlternativeLogin {
  12. /**
  13. * Label shown on the login option
  14. * @return string
  15. * @since 20.0.0
  16. */
  17. public function getLabel(): string;
  18. /**
  19. * Relative link to the login option
  20. * @return string
  21. * @since 20.0.0
  22. */
  23. public function getLink(): string;
  24. /**
  25. * CSS classes added to the alternative login option on the login screen
  26. * @return string
  27. * @since 20.0.0
  28. */
  29. public function getClass(): string;
  30. /**
  31. * Load necessary resources to present the login option, e.g. style-file to style the getClass()
  32. * @since 20.0.0
  33. */
  34. public function load(): void;
  35. }