extends |
Auth |
|---|
Class to perform basic authentification
Create an instance of class with password and username and then check Event for credentials:
(new AuthBasic('username','pass'))->authentificate($event)
| Methods | ||
|---|---|---|
public
|
__construct(string $login, string $password)
|
# |
| Methods inherited from Porta\Psr14Event\Auth\Auth |
|---|
withAuthHeader(), authentificate(), check(), parseData(), extractHeader() |
| Constants | ||
|---|---|---|
protected
|
AUTH_BASIC = 'Basic'
|
# |
| Constants inherited from Porta\Psr14Event\Auth\Auth |
|---|
|
| Properties | |||
|---|---|---|---|
protected
|
string
|
$login
|
# |
protected
|
string
|
$password
|
# |
| Properties inherited from Porta\Psr14Event\Auth\Auth |
|---|
$authHeader, $request, $authType, $authValue, $dateHeader |