migrate ldap list wrapper fields (#3162)

This commit is contained in:
Dharini committed 2026-06-03 16:36:29 -07:00
1 parent 71ec7b465a
commit 4e2b779d96
12 files changed
+163 -136

No files matched your search

@@ -5,7 +5,10 @@
import Route from '@ember/routing/route';
import { service } from '@ember/service';
import { TYPE_AUTH_METHOD_OIDC } from 'api/models/auth-method';
import {
TYPE_AUTH_METHOD_OIDC,
TYPE_AUTH_METHOD_LDAP,
} from 'api/models/auth-method';
export default class ScopesScopeAuthMethodsNewRoute extends Route {
// =services
@@ -57,6 +60,11 @@ export default class ScopesScopeAuthMethodsNewRoute extends Route {
record.signing_algorithms = [{ value: '' }];
record.idp_ca_certs = [{ value: '' }];
}
// If the auth-method is of type LDAP, initialize the certificates field with an empty object.
if (params.type === TYPE_AUTH_METHOD_LDAP) {
record.certificates = [{ value: '' }];
record.account_attribute_maps = [{ key: '', value: '' }];
}
return record;
}