SupportsBasicAuth.php 635B

12345678910111213141516171819202122232425
  1. <?php
  2. namespace Illuminate\Contracts\Auth;
  3. interface SupportsBasicAuth
  4. {
  5. /**
  6. * Attempt to authenticate using HTTP Basic Auth.
  7. *
  8. * @param string $field
  9. * @param array $extraConditions
  10. * @return \Symfony\Component\HttpFoundation\Response|null
  11. */
  12. public function basic($field = 'email', $extraConditions = []);
  13. /**
  14. * Perform a stateless HTTP Basic login attempt.
  15. *
  16. * @param string $field
  17. * @param array $extraConditions
  18. * @return \Symfony\Component\HttpFoundation\Response|null
  19. */
  20. public function onceBasic($field = 'email', $extraConditions = []);
  21. }