mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-19 09:45:37 -04:00
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:
parent
4e74998372
commit
83ef1de792
3 changed files with 61 additions and 61 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue