oidc: make clients more dynamic

This commit is contained in:
Johannes Zellner
2023-03-14 14:58:09 +01:00
parent cef34bfbb7
commit b792fb97d6
2 changed files with 54 additions and 15 deletions

View File

@@ -388,6 +388,10 @@ async function initializeExpressSync() {
app.use(oidcPrefix, oidcProvider.callback());
// FIXME this should come from the database
await oidc.upsertClient(oidcProvider, 'foo', 'bar', 'https://openidconnect.net/callback');
await oidc.upsertClient(oidcProvider, 'oidcdebugger', 'bar', 'https://oidcdebugger.com/debug');
// 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);