adding ms grpah client

This commit is contained in:
2024-06-05 21:28:12 -05:00
parent 373337d8d6
commit 1de80a7a20
19 changed files with 858 additions and 101 deletions

View File

@@ -1,21 +1,26 @@
import { Module, DynamicModule } from '@nestjs/common';
import { AuthService } from './auth.service';
import { AuthOptions } from './auth.interface';
import { AUTH_OPTIONS } from './auth.constants';
import { PassportModule } from '@nestjs/passport';
import { AzureAdStrategy } from './auth.strategy';
@Module({})
export class AuthModule {
static register(options: AuthOptions): DynamicModule {
return {
module: AuthModule,
imports: [
PassportModule.register({
defaultStrategy: 'azure-ad'
})
],
providers: [
{
provide: AUTH_OPTIONS,
useValue: options
},
AuthService
],
exports: [AuthService]
AzureAdStrategy
]
};
}
}