add default values
This commit is contained in:
parent
7edc76a079
commit
64146b6bd4
1 changed files with 8 additions and 2 deletions
|
@ -90,6 +90,7 @@ export const LdapMapperRoleGroup = ({
|
||||||
type="text"
|
type="text"
|
||||||
id="kc-name-attribute"
|
id="kc-name-attribute"
|
||||||
data-testid="name-attribute"
|
data-testid="name-attribute"
|
||||||
|
defaultValue="cn"
|
||||||
name={
|
name={
|
||||||
isRole
|
isRole
|
||||||
? "config.role-name-ldap-attribute[0]"
|
? "config.role-name-ldap-attribute[0]"
|
||||||
|
@ -119,6 +120,7 @@ export const LdapMapperRoleGroup = ({
|
||||||
type="text"
|
type="text"
|
||||||
id="kc-object-classes"
|
id="kc-object-classes"
|
||||||
data-testid="object-classes"
|
data-testid="object-classes"
|
||||||
|
defaultValue="group"
|
||||||
name={
|
name={
|
||||||
isRole
|
isRole
|
||||||
? "config.role-object-classes[0]"
|
? "config.role-object-classes[0]"
|
||||||
|
@ -143,7 +145,7 @@ export const LdapMapperRoleGroup = ({
|
||||||
>
|
>
|
||||||
<Controller
|
<Controller
|
||||||
name="config.preserve-group-inheritance"
|
name="config.preserve-group-inheritance"
|
||||||
defaultValue={["false"]}
|
defaultValue={["true"]}
|
||||||
control={form.control}
|
control={form.control}
|
||||||
render={({ onChange, value }) => (
|
render={({ onChange, value }) => (
|
||||||
<Switch
|
<Switch
|
||||||
|
@ -202,6 +204,7 @@ export const LdapMapperRoleGroup = ({
|
||||||
<TextInput
|
<TextInput
|
||||||
isRequired
|
isRequired
|
||||||
type="text"
|
type="text"
|
||||||
|
defaultValue="member"
|
||||||
id="kc-membership-ldap-attribute"
|
id="kc-membership-ldap-attribute"
|
||||||
data-testid="membership-ldap-attribute"
|
data-testid="membership-ldap-attribute"
|
||||||
name="config.membership-ldap-attribute[0]"
|
name="config.membership-ldap-attribute[0]"
|
||||||
|
@ -264,6 +267,7 @@ export const LdapMapperRoleGroup = ({
|
||||||
type="text"
|
type="text"
|
||||||
id="kc-membership-user-ldap-attribute"
|
id="kc-membership-user-ldap-attribute"
|
||||||
data-testid="membership-user-ldap-attribute"
|
data-testid="membership-user-ldap-attribute"
|
||||||
|
defaultValue="cn"
|
||||||
name="config.membership-user-ldap-attribute[0]"
|
name="config.membership-user-ldap-attribute[0]"
|
||||||
ref={form.register}
|
ref={form.register}
|
||||||
/>
|
/>
|
||||||
|
@ -413,6 +417,7 @@ export const LdapMapperRoleGroup = ({
|
||||||
isRequired
|
isRequired
|
||||||
type="text"
|
type="text"
|
||||||
id="kc-member-of-attribute"
|
id="kc-member-of-attribute"
|
||||||
|
defaultValue="memberOf"
|
||||||
data-testid="member-of-attribute"
|
data-testid="member-of-attribute"
|
||||||
name="config.memberof-ldap-attribute[0]"
|
name="config.memberof-ldap-attribute[0]"
|
||||||
ref={form.register}
|
ref={form.register}
|
||||||
|
@ -434,7 +439,7 @@ export const LdapMapperRoleGroup = ({
|
||||||
>
|
>
|
||||||
<Controller
|
<Controller
|
||||||
name="config.use-realm-roles-mapping"
|
name="config.use-realm-roles-mapping"
|
||||||
defaultValue={["false"]}
|
defaultValue={["true"]}
|
||||||
control={form.control}
|
control={form.control}
|
||||||
render={({ onChange, value }) => (
|
render={({ onChange, value }) => (
|
||||||
<Switch
|
<Switch
|
||||||
|
@ -557,6 +562,7 @@ export const LdapMapperRoleGroup = ({
|
||||||
type="text"
|
type="text"
|
||||||
id="kc-path"
|
id="kc-path"
|
||||||
data-testid="path"
|
data-testid="path"
|
||||||
|
defaultValue="/"
|
||||||
name="config.groups-path[0]"
|
name="config.groups-path[0]"
|
||||||
ref={form.register}
|
ref={form.register}
|
||||||
/>
|
/>
|
||||||
|
|
Loading…
Reference in a new issue