Skip to content

Commit a9fdac7

Browse files
committed
implement all functions to get something to run
1 parent becb437 commit a9fdac7

File tree

1 file changed

+35
-7
lines changed

1 file changed

+35
-7
lines changed

solid/lib/ClientAuth.php

Lines changed: 35 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,41 @@
88
* @package OCA\Solid
99
*/
1010
class ClientAuth extends ABackend implements ICheckPasswordBackend {
11-
private $config;
11+
public function __construct() {
12+
error_log("SO Constructed solid client auth backend");
13+
}
1214

13-
public function __construct(IConfig $config) {
14-
$this->config = $config;
15+
public function checkPassword(string $username, string $password) {
16+
error_log("SO checking password for $username");
17+
return true;
1518
}
1619

17-
public function checkPassword(string $username, string $password) {
18-
return true;
19-
}
20-
}
20+
public function getBackendName() {
21+
error_log("SO getBackendName");
22+
return "Solid";
23+
}
24+
public function deleteUser($uid) {
25+
error_log("SO deleteUser");
26+
return false;
27+
}
28+
public function getUsers($search = "", $limit = null, $offset = null, $callback = null) {
29+
error_log("SO getUsers");
30+
return [];
31+
}
32+
public function userExists($uid) {
33+
error_log("SO User exists");
34+
return true;
35+
}
36+
public function getDisplayName($uid) {
37+
error_log("SO getDisplayName");
38+
return "Solid client";
39+
}
40+
public function getDisplayNames($search = "", $limit = null, $offset = null) {
41+
error_log("SO getDisplayNames");
42+
return [];
43+
}
44+
public function hasUserListings() {
45+
error_log("SO hasUserListings");
46+
return false;
47+
}
48+
}

0 commit comments

Comments
 (0)