Support for sessionless HTTP API authentication

This commit is contained in:
Philip H. 2023-11-09 18:58:48 +00:00 committed by GitHub
parent b56c49c99a
commit bf956e3ae8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 387 additions and 29 deletions

View file

@ -248,8 +248,9 @@ Endpoint = ${WG_HOST}:${WG_PORT}`;
}
// Create Client
const clientId = uuid.v4();
const id = uuid.v4();
const client = {
id,
name,
address,
privateKey,
@ -262,7 +263,7 @@ Endpoint = ${WG_HOST}:${WG_PORT}`;
enabled: true,
};
config.clients[clientId] = client;
config.clients[id] = client;
await this.saveConfig();