blob: 9c545910e28474517089fb2218a50c99eac7b2ed [file] [log] [blame]
Matthias Andreas Benkard7b2a3a12021-08-16 10:57:25 +02001<?php
2
3namespace Illuminate\Contracts\Auth;
4
5interface SupportsBasicAuth
6{
7 /**
8 * Attempt to authenticate using HTTP Basic Auth.
9 *
10 * @param string $field
11 * @param array $extraConditions
12 * @return \Symfony\Component\HttpFoundation\Response|null
13 */
14 public function basic($field = 'email', $extraConditions = []);
15
16 /**
17 * Perform a stateless HTTP Basic login attempt.
18 *
19 * @param string $field
20 * @param array $extraConditions
21 * @return \Symfony\Component\HttpFoundation\Response|null
22 */
23 public function onceBasic($field = 'email', $extraConditions = []);
24}