feat(console): Active Directory / LDAP, cleanup idp component routing (#5506)

feat(console): LDAP
This commit is contained in:
Max Peintner
2023-03-28 07:38:17 +00:00
committed by GitHub
parent a14bfff0bb
commit 542271b467
74 changed files with 1542 additions and 865 deletions
@@ -37,7 +37,7 @@ export class ProviderOIDCComponent {
public serviceType: PolicyComponentServiceType = PolicyComponentServiceType.MGMT;
private service!: ManagementService | AdminService;
public readonly separatorKeysCodes: number[] = [ENTER, COMMA, SPACE];
public oidcFormGroup!: UntypedFormGroup;
public form!: UntypedFormGroup;
public loading: boolean = false;
@@ -50,7 +50,7 @@ export class ProviderOIDCComponent {
private _location: Location,
breadcrumbService: BreadcrumbService,
) {
this.oidcFormGroup = new UntypedFormGroup({
this.form = new UntypedFormGroup({
name: new UntypedFormControl('', [requiredValidator]),
clientId: new UntypedFormControl('', [requiredValidator]),
clientSecret: new UntypedFormControl('', [requiredValidator]),
@@ -105,7 +105,7 @@ export class ProviderOIDCComponent {
this.provider = resp.idp;
this.loading = false;
if (this.provider?.config?.oidc) {
this.oidcFormGroup.patchValue(this.provider.config.oidc);
this.form.patchValue(this.provider.config.oidc);
this.name?.setValue(this.provider.name);
}
})
@@ -204,22 +204,22 @@ export class ProviderOIDCComponent {
}
public get name(): AbstractControl | null {
return this.oidcFormGroup.get('name');
return this.form.get('name');
}
public get clientId(): AbstractControl | null {
return this.oidcFormGroup.get('clientId');
return this.form.get('clientId');
}
public get clientSecret(): AbstractControl | null {
return this.oidcFormGroup.get('clientSecret');
return this.form.get('clientSecret');
}
public get issuer(): AbstractControl | null {
return this.oidcFormGroup.get('issuer');
return this.form.get('issuer');
}
public get scopesList(): AbstractControl | null {
return this.oidcFormGroup.get('scopesList');
return this.form.get('scopesList');
}
}