feat: add prefixed route
All checks were successful
JS Unit Tests / test (pull_request) Successful in 19s
Build Test / build (pull_request) Successful in 21s
PHP Unit Tests / test (pull_request) Successful in 49s

Signed-off-by: Sebastian Krupinski <krupinski01@gmail.com>
This commit is contained in:
2026-03-06 22:48:16 -05:00
parent a533d0dd89
commit ce5c5b3746
4 changed files with 79 additions and 10 deletions

View File

@@ -142,4 +142,19 @@ class SecurityService
{
return $this->tokenService->validateToken($token, $this->securityCode, checkBlacklist: false);
}
/**
* Authenticate using a plain-text identity + password credential.
*
* Used by the DAV auth backend which receives credentials from the HTTP
* Basic challenge after they have been extracted from the Authorization header.
*
* @param string $identity Username / e-mail
* @param string $password Plain-text password
* @return User|null Authenticated user, or null on failure
*/
public function authenticatePassword(string $identity, string $password): ?User
{
return $this->authenticateBasic($identity, $password);
}
}