mirror of https://github.com/nocodb/nocodb
mertmit
7 months ago
13 changed files with 48 additions and 33 deletions
@ -0,0 +1,31 @@
|
||||
import { Module } from '@nestjs/common'; |
||||
import { PassportModule } from '@nestjs/passport'; |
||||
|
||||
import { NocoModule } from '~/modules/noco.module'; |
||||
|
||||
import { BasicStrategy } from '~/strategies/basic.strategy/basic.strategy'; |
||||
import { LocalStrategy } from '~/strategies/local.strategy'; |
||||
import { AuthTokenStrategy } from '~/strategies/authtoken.strategy/authtoken.strategy'; |
||||
import { BaseViewStrategy } from '~/strategies/base-view.strategy/base-view.strategy'; |
||||
import { GoogleStrategyProvider } from '~/strategies/google.strategy/google.strategy'; |
||||
import { AuthService } from '~/modules/auth/auth.service'; |
||||
import { AuthController } from '~/modules/auth/auth.controller'; |
||||
|
||||
export const authModuleMetadata = { |
||||
imports: [PassportModule, NocoModule], |
||||
controllers: [ |
||||
...(process.env.NC_WORKER_CONTAINER !== 'true' ? [AuthController] : []), |
||||
], |
||||
providers: [ |
||||
AuthService, |
||||
LocalStrategy, |
||||
AuthTokenStrategy, |
||||
BaseViewStrategy, |
||||
BasicStrategy, |
||||
GoogleStrategyProvider, |
||||
], |
||||
exports: [], |
||||
}; |
||||
|
||||
@Module(authModuleMetadata) |
||||
export class AuthModule {} |
Loading…
Reference in new issue