Add external login tests

This commit is contained in:
Chocobozzz 2020-04-29 09:04:42 +02:00 committed by Chocobozzz
parent 4a8d113b9b
commit 9107d791e2
19 changed files with 582 additions and 27 deletions

View file

@ -1,4 +1,4 @@
import { handleIdAndPassLogin, handleTokenRevocation } from '@server/lib/auth'
import { handleLogin, handleTokenRevocation } from '@server/lib/auth'
import * as RateLimit from 'express-rate-limit'
import { CONFIG } from '@server/initializers/config'
import * as express from 'express'
@ -14,7 +14,7 @@ const loginRateLimiter = RateLimit({
tokensRouter.post('/token',
loginRateLimiter,
handleIdAndPassLogin,
handleLogin,
tokenSuccess
)