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
@@ -7,9 +7,6 @@ import { Router, ActivatedRoute, RouterLink } from '@angular/router';
import { SystemService } from '../../system.service';
import { STANDALONE_SHARED_IMPORTS } from 'app/standalone-shared.module';
/** Custom Service Zitadel */
import { AuthService } from 'app/zitadel/auth.service';
/**
* Add Role Component.
*/
@@ -35,8 +32,7 @@ export class AddRoleComponent implements OnInit {
private formBuilder: UntypedFormBuilder,
private systemService: SystemService,
private route: ActivatedRoute,
private router: Router,
private authService: AuthService
private router: Router
) {}
/**
@@ -68,7 +64,6 @@ export class AddRoleComponent implements OnInit {
*/
submit() {
this.systemService.createRole(this.roleForm.value).subscribe((response: any) => {
this.authService.createRole(response.resourceId, this.roleForm.value.name, this.roleForm.value.description);
this.router.navigate(['../'], { relativeTo: this.route });
});
}
@@ -7,9 +7,6 @@ import { ActivatedRoute, Router, RouterLink } from '@angular/router';
import { SystemService } from '../../system.service';
import { STANDALONE_SHARED_IMPORTS } from 'app/standalone-shared.module';
/** Custom Service Zitadel */
import { AuthService } from 'app/zitadel/auth.service';
/**
* Edit Role Description Component.
*/
@@ -38,8 +35,7 @@ export class EditRoleComponent implements OnInit {
private formBuilder: UntypedFormBuilder,
private systemService: SystemService,
private route: ActivatedRoute,
private router: Router,
private authService: AuthService
private router: Router
) {
this.route.data.subscribe((data: { role: any }) => {
this.roleData = data.role;
@@ -75,7 +71,6 @@ export class EditRoleComponent implements OnInit {
*/
submit() {
this.systemService.updateRole(this.roleForm.value, this.roleData.id).subscribe(() => {
this.authService.updateRole(this.roleData.id, this.roleForm.get('name')?.value, this.roleForm.value.description);
this.router.navigate(['../../'], { relativeTo: this.route });
});
}
@@ -18,9 +18,6 @@ import { MatDivider } from '@angular/material/divider';
import { MatCheckbox } from '@angular/material/checkbox';
import { STANDALONE_SHARED_IMPORTS } from 'app/standalone-shared.module';
/** Custom Service Zitadel */
import { AuthService } from 'app/zitadel/auth.service';
/**
* View Role and Permissions Component
*/
@@ -87,8 +84,7 @@ export class ViewRoleComponent implements OnInit {
private router: Router,
private formBuilder: UntypedFormBuilder,
private translateService: TranslateService,
public dialog: MatDialog,
private authService: AuthService
public dialog: MatDialog
) {
this.route.data.subscribe((data: { roledetails: any }) => {
this.rolePermissionService = data.roledetails;
@@ -285,7 +281,6 @@ export class ViewRoleComponent implements OnInit {
deleteRoleDialogRef.afterClosed().subscribe((response: any) => {
if (response.delete) {
this.systemService.deleteRole(this.roleId).subscribe(() => {
this.authService.deleteRole(this.roleId);
this.router.navigate(['/system/roles-and-permissions']);
});
} else {