From 4e74998372fc724a277010d7f4ae1990bf8177fa Mon Sep 17 00:00:00 2001 From: Philip Molares Date: Mon, 13 Apr 2020 13:46:29 +0200 Subject: [PATCH] fixed auth/google import Signed-off-by: Philip Molares Signed-off-by: David Mehren --- lib/web/auth/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/web/auth/index.ts b/lib/web/auth/index.ts index d00e84f25..375292173 100644 --- a/lib/web/auth/index.ts +++ b/lib/web/auth/index.ts @@ -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)