Unified request for uid

This commit is contained in:
Michael 2021-06-08 08:28:14 +00:00
parent 85217941e3
commit 11c8dfe73a
6 changed files with 11 additions and 21 deletions

View file

@ -173,21 +173,9 @@ class BaseApi extends BaseModule
}
/**
* Log in user via OAuth or Simple HTTP Auth.
*
* Simple Auth allow username in form of <pre>user@server</pre>, ignoring server part
* Log in user via OAuth or Basic HTTP Auth.
*
* @param string $scope the requested scope (read, write, follow)
*
* @throws HTTPException\ForbiddenException
* @throws HTTPException\UnauthorizedException
* @throws HTTPException\InternalServerErrorException
* @hook 'authenticate'
* array $addon_auth
* 'username' => username from login form
* 'password' => password from login form
* 'authenticated' => return status,
* 'user_record' => return authenticated user record
*/
protected static function login(string $scope)
{