Refactored OpenID to typescript

Added OpenID in auth

Signed-off-by: Yannick Bungers <git@innay.de>
Signed-off-by: David Mehren <dmehren1@gmail.com>
This commit is contained in:
Yannick Bungers 2020-04-13 13:51:49 +02:00 committed by David Mehren
parent 4e74998372
commit 83ef1de792
No known key found for this signature in database
GPG key ID: 6017AF117F9756CB
3 changed files with 61 additions and 61 deletions

View file

@ -13,7 +13,7 @@ import { LdapMiddleware } from './ldap'
import { SamlMiddleware } from './saml'
import oauth2 from './oauth2'
import { EmailMiddleware } from './email'
import openid from './openid'
import {OPenIDMiddleware } from './openid'
const AuthRouter = Router()
@ -53,7 +53,7 @@ if (config.isLDAPEnable) AuthRouter.use(LdapMiddleware.getMiddleware())
if (config.isSAMLEnable) AuthRouter.use(SamlMiddleware.getMiddleware())
if (config.isOAuth2Enable) AuthRouter.use(oauth2)
if (config.isEmailEnable) AuthRouter.use(EmailMiddleware.getMiddleware())
if (config.isOpenIDEnable) AuthRouter.use(openid)
if (config.isOpenIDEnable) AuthRouter.use(OPenIDMiddleware.getMiddleware())
// logout
AuthRouter.get('/logout', function (req: Request, res: Response) {