mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-23 18:26:32 -05:00
fixed auth/google import
Signed-off-by: Philip Molares <philip.molares@udo.edu> Signed-off-by: David Mehren <dmehren1@gmail.com>
This commit is contained in:
parent
5c9bef36d1
commit
4e74998372
1 changed files with 2 additions and 2 deletions
|
@ -8,7 +8,7 @@ import { TwitterMiddleware } from './twitter'
|
|||
import { GithubMiddleware } from './github'
|
||||
import { GitlabMiddleware } from './gitlab'
|
||||
import { DropboxMiddleware } from './dropbox'
|
||||
import google from './google'
|
||||
import { GoogleMiddleware } from './google'
|
||||
import { LdapMiddleware } from './ldap'
|
||||
import { SamlMiddleware } from './saml'
|
||||
import oauth2 from './oauth2'
|
||||
|
@ -48,7 +48,7 @@ if (config.isTwitterEnable) AuthRouter.use(TwitterMiddleware.getMiddleware())
|
|||
if (config.isGitHubEnable) AuthRouter.use(GithubMiddleware.getMiddleware())
|
||||
if (config.isGitLabEnable) AuthRouter.use(GitlabMiddleware.getMiddleware())
|
||||
if (config.isDropboxEnable) AuthRouter.use(DropboxMiddleware.getMiddleware())
|
||||
if (config.isGoogleEnable) AuthRouter.use(google)
|
||||
if (config.isGoogleEnable) AuthRouter.use(GoogleMiddleware.getMiddleware())
|
||||
if (config.isLDAPEnable) AuthRouter.use(LdapMiddleware.getMiddleware())
|
||||
if (config.isSAMLEnable) AuthRouter.use(SamlMiddleware.getMiddleware())
|
||||
if (config.isOAuth2Enable) AuthRouter.use(oauth2)
|
||||
|
|
Loading…
Reference in a new issue