Add external login tests
This commit is contained in:
parent
4a8d113b9b
commit
9107d791e2
19 changed files with 582 additions and 27 deletions
|
@ -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
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue