Refactor auth flow

Reimplement some node-oauth2-server methods to remove hacky code needed by our external
login workflow
This commit is contained in:
Chocobozzz
2021-03-12 15:20:46 +01:00
parent cae2df6bdc
commit f43db2f46e
24 changed files with 487 additions and 255 deletions

View File

@@ -137,7 +137,7 @@ describe('Test external auth plugins', function () {
await loginUsingExternalToken(server, 'cyan', externalAuthToken, HttpStatusCode.BAD_REQUEST_400)
await waitUntilLog(server, 'expired external auth token')
await waitUntilLog(server, 'expired external auth token', 2)
})
it('Should auto login Cyan, create the user and use the token', async function () {