refactor: 💡 update accounts model with ldap account attributes (#1766)
✅ Closes: ICU-10050
This commit is contained in:
1 parent
ba0edd603d
commit
56e8a73100
2 files changed
+24
-5
No files matched your search
@@ -49,9 +49,9 @@ export default class GeneratedAccountModel extends BaseModel {
|
||||
})
|
||||
version;
|
||||
|
||||
// =attributes (password)
|
||||
// =attributes (password and LDAP)
|
||||
@attr('string', {
|
||||
for: 'password',
|
||||
for: ['password', 'ldap'],
|
||||
isNestedAttribute: true,
|
||||
description: 'The account login name',
|
||||
})
|
||||
@@ -60,8 +60,27 @@ export default class GeneratedAccountModel extends BaseModel {
|
||||
// =attributes (OIDC)
|
||||
@attr('string', { for: 'oidc', isNestedAttribute: true }) subject;
|
||||
@attr('string', { for: 'oidc', isNestedAttribute: true }) issuer;
|
||||
@attr('string', { for: 'oidc', isNestedAttribute: true, readOnly: true })
|
||||
|
||||
// =attributes (OIDC and LDAP)
|
||||
@attr('string', {
|
||||
for: ['oidc', 'ldap'],
|
||||
isNestedAttribute: true,
|
||||
readOnly: true,
|
||||
})
|
||||
email;
|
||||
@attr('string', { for: 'oidc', isNestedAttribute: true, readOnly: true })
|
||||
@attr('string', {
|
||||
for: ['oidc', 'ldap'],
|
||||
isNestedAttribute: true,
|
||||
readOnly: true,
|
||||
})
|
||||
full_name;
|
||||
|
||||
// =attributes (LDAP)
|
||||
@attr('string', { for: 'ldap', isNestedAttribute: true, readOnly: true }) dn;
|
||||
@attr('string-array', {
|
||||
for: 'ldap',
|
||||
isNestedAttribute: true,
|
||||
readOnly: true,
|
||||
})
|
||||
member_of_groups;
|
||||
}
|
||||
Reference in new issue
Block a user