split oidc into server and clients

This commit is contained in:
Girish Ramakrishnan
2025-06-11 22:00:09 +02:00
parent 5d4eef50e4
commit 1ca8eeeb50
17 changed files with 255 additions and 171 deletions

View File

@@ -9,7 +9,7 @@ const apps = require('../../apps.js'),
fs = require('fs'),
mailer = require('../../mailer.js'),
nock = require('nock'),
oidc = require('../../oidc.js'),
oidcServer = require('../../oidcserver.js'),
safe = require('safetydance'),
server = require('../../server.js'),
settings = require('../../settings.js'),
@@ -115,7 +115,7 @@ async function setupServer() {
await database.initialize();
await database._clear();
await appstore._setApiServerOrigin(exports.mockApiServerOrigin);
await oidc.stop();
await oidcServer.stop();
await server.start();
debug('Set up server complete');
}
@@ -180,7 +180,7 @@ async function cleanup() {
debug('Cleaning up');
await database._clear();
await server.stop();
await oidc.stop();
await oidcServer.stop();
debug('Cleaned up');
}