Revert "WEB-233: Improve the OIDC integration with 2FA (#2602)"

This reverts commit 9745643456.
This commit is contained in:
Víctor Romero
2025-08-23 08:31:02 -06:00
committed by GitHub
parent 304d7d595c
commit 0b9ca5d418
50 changed files with 132 additions and 3248 deletions
+2 -28
View File
@@ -2,13 +2,7 @@
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import {
HttpBackend,
HttpClient,
provideHttpClient,
withInterceptorsFromDi,
HTTP_INTERCEPTORS
} from '@angular/common/http';
import { HttpBackend, HttpClient, provideHttpClient, withInterceptorsFromDi } from '@angular/common/http';
/** Environment Configuration */
@@ -53,11 +47,6 @@ import {
} from '@ngx-translate/core';
import { TranslateHttpLoader } from '@ngx-translate/http-loader';
import { AuthenticationInterceptor as TokenInterceptor } from './core/authentication/authentication.interceptor';
import { TokenInterceptor as ZitadelTokenInterceptor } from './zitadel/token.interceptor';
import { AuthService } from './zitadel/auth.service';
import { environment } from '../environments/environment';
export class CustomMissingTranslationHandler implements MissingTranslationHandler {
handle(params: MissingTranslationHandlerParams): string {
// Remove the 'labels.catalogs.' prefix and return the fallback value
@@ -123,21 +112,6 @@ export function HttpLoaderFactory(http: HttpClient) {
],
providers: [
DatePipe,
AuthService,
{
provide: HTTP_INTERCEPTORS,
useClass: !(
environment.OIDC.oidcServerEnabled === false ||
environment.OIDC.oidcServerEnabled === 'false' ||
environment.OIDC.oidcServerEnabled === 0 ||
environment.OIDC.oidcServerEnabled === '0' ||
environment.OIDC.oidcServerEnabled === null ||
environment.OIDC.oidcServerEnabled === undefined
)
? TokenInterceptor
: ZitadelTokenInterceptor,
multi: true
}
]
provideHttpClient(withInterceptorsFromDi())]
})
export class AppModule {}