added a TestCase for basic auth

Signed-off-by: Lutz Freitag <lutz@gottliebtfreitag.de>
This commit is contained in:
Lutz Freitag
2019-02-24 18:33:01 -05:00
parent 71eb09546b
commit 9be32d66a6
4 changed files with 44 additions and 3 deletions

View File

@@ -32,9 +32,9 @@ class OC_User_BasicAuth extends \OCA\user_external\Base {
);
$headers = get_headers($this->authUrl);
if($headers === false) {
if(!$headers) {
OC::$server->getLogger()->error(
'ERROR: Not possible to connect to BasicAuth Url: "'.$this->authUrl.'"',
'ERROR: Not possible to connect to BasicAuth Url: '.$this->authUrl,
['app' => 'user_external']
);
return false;