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

@@ -388,6 +388,12 @@ async function initializeExpressSync() {
app.use(oidcPrefix, oidcProvider.callback());
router.get ('/api/v1/oidc/clients', token, authorizeAdmin, routes.oidcclients.list);
router.post('/api/v1/oidc/clients', json, token, authorizeAdmin, routes.oidcclients.add);
router.get ('/api/v1/oidc/clients/:clientId', token, authorizeAdmin, routes.oidcclients.get);
router.post('/api/v1/oidc/clients/:clientId', json, token, authorizeAdmin, routes.oidcclients.update);
router.del ('/api/v1/oidc/clients/:clientId', token, authorizeAdmin, routes.oidcclients.remove);
// disable server socket "idle" timeout. we use the timeout middleware to handle timeouts on a route level
// we rely on nginx for timeouts on the TCP level (see client_header_timeout)
httpServer.setTimeout(0);