oidc: Add clients manage routes
This commit is contained in:
12
src/oidc.js
12
src/oidc.js
@@ -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() {
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user