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:
Philip Molares 2020-04-13 13:46:29 +02:00 committed by David Mehren
parent 5c9bef36d1
commit 4e74998372
No known key found for this signature in database
GPG key ID: 6017AF117F9756CB

View file

@ -8,7 +8,7 @@ import { TwitterMiddleware } from './twitter'
import { GithubMiddleware } from './github' import { GithubMiddleware } from './github'
import { GitlabMiddleware } from './gitlab' import { GitlabMiddleware } from './gitlab'
import { DropboxMiddleware } from './dropbox' import { DropboxMiddleware } from './dropbox'
import google from './google' import { GoogleMiddleware } from './google'
import { LdapMiddleware } from './ldap' import { LdapMiddleware } from './ldap'
import { SamlMiddleware } from './saml' import { SamlMiddleware } from './saml'
import oauth2 from './oauth2' import oauth2 from './oauth2'
@ -48,7 +48,7 @@ if (config.isTwitterEnable) AuthRouter.use(TwitterMiddleware.getMiddleware())
if (config.isGitHubEnable) AuthRouter.use(GithubMiddleware.getMiddleware()) if (config.isGitHubEnable) AuthRouter.use(GithubMiddleware.getMiddleware())
if (config.isGitLabEnable) AuthRouter.use(GitlabMiddleware.getMiddleware()) if (config.isGitLabEnable) AuthRouter.use(GitlabMiddleware.getMiddleware())
if (config.isDropboxEnable) AuthRouter.use(DropboxMiddleware.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.isLDAPEnable) AuthRouter.use(LdapMiddleware.getMiddleware())
if (config.isSAMLEnable) AuthRouter.use(SamlMiddleware.getMiddleware()) if (config.isSAMLEnable) AuthRouter.use(SamlMiddleware.getMiddleware())
if (config.isOAuth2Enable) AuthRouter.use(oauth2) if (config.isOAuth2Enable) AuthRouter.use(oauth2)