Implements HTTP “Basic” authentication.
- The Basic username is the
$apiClientId
, - the Basic password is the
$apiClientKey
. - The Basic password must also be returned unchanged by the KeyRepository.
If you want to store the Basic password in hashed form instead of plaintext passwords, use the BasicHashAuthenticationMethod class instead.
This is here mostly for testing and completeness purposes; whatever HTTP/REST/PSR-7 library you're using, it can probably do this better.
- Full class name:
mle86\RequestAuthentication\AuthenticationMethod\BasicAuthenticationMethod
- Class file: src/AuthenticationMethod/BasicAuthenticationMethod.php
- Inheritance:
- implements AuthenticationMethod
__construct ()