squash new oauth2 flow

This commit is contained in:
lesion
2022-11-04 12:22:21 +01:00
parent 19ca1b0283
commit 44e9533828
24 changed files with 935 additions and 427 deletions

View File

@@ -54,7 +54,8 @@ describe('Authentication / Authorization', () => {
test('should not authenticate with wrong user/password', () => {
return request(app).post('/oauth/login')
.set('Content-Type', 'application/x-www-form-urlencoded')
.expect(500)
.send({ email: 'admin', password: 'wrong'})
.expect(401)
})
test('should register an admin as first user', async () => {