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;
|
||||
}
|
||||
@@ -3269,7 +3269,7 @@ tar-stream@^1.5.2:
|
||||
to-buffer "^1.1.1"
|
||||
xtend "^4.0.0"
|
||||
|
||||
tar@^6.0.5, tar@^6.1.11, tar@^6.1.2, tar@^6.1.9:
|
||||
tar@^6.0.5, tar@^6.1.11, tar@^6.1.2:
|
||||
version "6.1.11"
|
||||
resolved "https://registry.yarnpkg.com/tar/-/tar-6.1.11.tgz#6760a38f003afa1b2ffd0ffe9e9abbd0eab3d621"
|
||||
integrity sha512-an/KZQzQUkZCkuoAA64hM92X0Urb6VpRhAFllDzz44U2mcD5scmT3zBc4VgVpkugF580+DQn8eAFSyoQt0tznA==
|
||||
|
||||
Reference in new issue
Block a user