feat: create human user v2 page (#9506)

# Which Problems Are Solved
Allows users to be created using the V2 User API

# How the Problems Are Solved
I added a seperate V2 create user page with the new code using the new
apis.

# Additional Changes
I did some refactorings arround our interceptors as they used an
obselete syntax.
The password complexity form takes the Buf definitions.

# Additional Context
- Closes #9430

---------

Co-authored-by: Max Peintner <[email protected]>
This commit is contained in:
Ramon
2025-03-19 13:27:59 +01:00
committed by GitHub
co-authored by Max Peintner
parent 11c9be3b8d
commit b418ea75bb
53 changed files with 863 additions and 375 deletions
@@ -1,8 +1,8 @@
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { AuthGuard } from 'src/app/guards/auth.guard';
import { RoleGuard } from 'src/app/guards/role.guard';
import { UserGuard } from 'src/app/guards/user.guard';
import { authGuard } from 'src/app/guards/auth.guard';
import { roleGuard } from 'src/app/guards/role-guard';
import { userGuard } from 'src/app/guards/user-guard';
import { Type } from 'src/app/proto/generated/zitadel/user_pb';
import { AuthUserDetailComponent } from './user-detail/auth-user-detail/auth-user-detail.component';
@@ -22,7 +22,7 @@ const routes: Routes = [
{
path: 'create',
loadChildren: () => import('./user-create/user-create.module'),
canActivate: [AuthGuard, RoleGuard],
canActivate: [authGuard, roleGuard],
data: {
roles: ['user.write'],
},
@@ -30,7 +30,7 @@ const routes: Routes = [
{
path: 'create-machine',
loadChildren: () => import('./user-create-machine/user-create-machine.module'),
canActivate: [AuthGuard, RoleGuard],
canActivate: [authGuard, roleGuard],
data: {
roles: ['user.write'],
},
@@ -38,7 +38,7 @@ const routes: Routes = [
{
path: 'me',
component: AuthUserDetailComponent,
canActivate: [AuthGuard],
canActivate: [authGuard],
data: {
animation: 'HomePage',
},
@@ -46,13 +46,13 @@ const routes: Routes = [
{
path: 'me/password',
component: PasswordComponent,
canActivate: [AuthGuard],
canActivate: [authGuard],
data: { animation: 'AddPage' },
},
{
path: ':id',
component: UserDetailComponent,
canActivate: [AuthGuard, UserGuard, RoleGuard],
canActivate: [authGuard, userGuard, roleGuard],
data: {
roles: ['user.read'],
animation: 'HomePage',
@@ -61,7 +61,7 @@ const routes: Routes = [
{
path: ':id/password',
component: PasswordComponent,
canActivate: [AuthGuard, RoleGuard],
canActivate: [authGuard, roleGuard],
data: {
roles: ['user.write'],
animation: 'AddPage',