Add hooks for providing our own login UI
This commit is contained in:
+5
-1
@@ -369,7 +369,11 @@ async function initializeExpressSync() {
|
||||
// well known
|
||||
router.get ('/well-known-handler/*', routes.wellknown.get);
|
||||
|
||||
app.use('/api/v1/oidc', await oidc.getMiddleware('/api/v1/oidc'));
|
||||
// OpenID connect
|
||||
const oidcPrefix = '/api/v1/oidc';
|
||||
const oidcProvider = await oidc.getProvider(oidcPrefix);
|
||||
oidc.attachInteractionRoutes(oidcPrefix, app, oidcProvider);
|
||||
app.use(oidcPrefix, oidcProvider.callback());
|
||||
|
||||
// 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)
|
||||
|
||||
Reference in New Issue
Block a user