implemented SqliteClientService

Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
This commit is contained in:
2024-09-15 20:24:46 +02:00
parent 1a34a3b4c6
commit f0213512ad
8 changed files with 213 additions and 35 deletions

View File

@@ -287,10 +287,10 @@ public class FileStore implements AuthorizationService, ClientService, SessionSe
}
@Override
public FileStore remove(Client client) {
public FileStore remove(String clientId) {
if (!json.has(CLIENTS)) return this;
var clients = json.getJSONObject(CLIENTS);
if (clients.has(client.id())) clients.remove(client.id());
if (clients.has(clientId)) clients.remove(clientId);
return save();
}