oidc: Add clients manage routes

This commit is contained in:
Johannes Zellner
2023-03-21 13:54:40 +01:00
parent e14b0a721a
commit 46c233bad6
6 changed files with 281 additions and 2 deletions

View File

@@ -2,6 +2,8 @@
exports = module.exports = {
getProvider,
start,
stop,
clients: {
add: clientsAdd,
get: clientsGet,
@@ -78,7 +80,7 @@ async function clientsDel(id) {
}
async function clientsList() {
const results = await database.query(`SELECT * FROM ${OIDC_CLIENTS_TABLE_NAME}`, []);
const results = await database.query(`SELECT * FROM ${OIDC_CLIENTS_TABLE_NAME} SORT BY id ASC`, []);
return results;
}
@@ -572,3 +574,11 @@ async function getProvider(routePrefix) {
return provider;
}
async function start() {
}
async function stop() {
}