-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
48 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 {} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fe1da3c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PR changes have been deployed. Please run the following command to verify: