sync build tree from private myoffice
This commit is contained in:
@@ -58,9 +58,10 @@ export class ExternalLoginConfig {
|
||||
}
|
||||
|
||||
static getAuth0Config() {
|
||||
const auth0 = environment.externalLogins?.auth0;
|
||||
return {
|
||||
clientId: environment.externalLogins.auth0.clientId,
|
||||
domain: environment.externalLogins.auth0.domain,
|
||||
clientId: auth0?.clientId || 'unused',
|
||||
domain: auth0?.domain || 'unused.auth0.com',
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ export function storageFactory(): OAuthStorage {
|
||||
declarations: [],
|
||||
imports: [
|
||||
CommonModule,
|
||||
SocialLoginModule,
|
||||
SocialLoginModule.initialize(ExternalLoginConfig.getSocialConfig()),
|
||||
OAuthModule.forRoot(),
|
||||
AuthModule.forRoot(ExternalLoginConfig.getAuth0Config()),
|
||||
],
|
||||
@@ -42,7 +42,6 @@ export function storageFactory(): OAuthStorage {
|
||||
{ provide: AuthConfig, useValue: AuthCodeFlowConfig },
|
||||
{ provide: OAuthModuleConfig, useValue: AuthModuleConfig },
|
||||
{ provide: OAuthStorage, useFactory: storageFactory },
|
||||
{ provide: 'SocialAuthServiceConfig', useValue: ExternalLoginConfig.getSocialConfig() },
|
||||
RightSidebarService,
|
||||
AuthGuard,
|
||||
AuthService,
|
||||
|
||||
Reference in New Issue
Block a user