Partitions
Advanced configuration to support partitions
Aim:
- Using more than one UserApp and separation for different user container in UI.
- show partition affiliation for each entry (user, role, ...)
partitions:
name_of_partition:
# compared with value of users.primaryPartitionAttribute
# to determine if this partition is the primary partition for that user
primaryPartitionKey: K
# ui related configuration
ui:
# human readable name of this partition
label: Partition Label
# path within config/assets to an image shown in the header based on logged-in user
logo: logo.png
# path within config/assets to an image besides each entry (user, role, ...) from this partition
icon: icon.png
users:
# used to select primary partition of an user (see partitions -> primaryPartitionKey above)
primaryPartitionAttribute: klPzmSparte
Custom Styling Support
ui:
assets:
# path within config/assets for an additional stylesheet to load
# this can be used to apply specific styles
styles: styles/custom.css
partitions:
name_of_partition:
ui:
# css class added to the document body
# this can be used to apply different styles based on the primary partition of the logged-in user
# default: primary-partition-<kebabCase(id)> -> primary-partition-name-of-partition
bodyClassName: some-partition-specific-css-class-name
# path within config/assets for an additional stylesheet to load
# this can be used to apply different styles based on the primary partition of the logged-in user
styles: styles/this-partition-styles.css
Example using one stylesheet file:
ui:
assets:
styles: styles/custom.css
partitions:
microfocus:
# no special config
File config/assets/styles/custom.css:
body {
background: yellow;
}
/* change background for partition microfocus */
body.primary-partition-microfocus {
background: green;
}
Example using different stylesheets
ui:
assets:
styles: styles/custom.css
partitions:
microfocus:
ui:
styles: styles/partition-microfocus.css
File config/assets/styles/custom.css:
body {
background: yellow;
}
File config/assets/styles/partition-microfocus.css:
/* change background for partition microfocus */
body {
background: green;
}
Using partition configuration
partitions:
identity:
id: k5
ui:
label: Kenoxa
logo: logo.png
icon: Karma_symbol_blau.png
rbpm:
url: https://userapp.kenoxa.com/IDMProv
href: https://userapp.kenoxa.com/IDMProv
driverRoot: 'cn=User Application Driver, cn=driverset, o=system'
credentials:
username: username
password: password
users:
base: 'ou=client1,ou=users,o=data'
roles:
base: 'cn=RoleDefs,cn=RoleConfig,cn=AppConfig,<%= partitions.identity.rbpm.driverRoot %>'
acme:
primaryPartitionKey: b
ui:
label: ACME
logo: logo.png
icon: logos/bootstrap.png
rbpm:
url: https://userapp.kenoxa.com/IDMProv
href: https://userapp.kenoxa.com/IDMProv
driverRoot: 'cn=User Application Driver, cn=driverset, o=system'
credentials:
username: username
password: password
users:
base: 'ou=ACME,ou=users,o=data'
roles:
base: 'cn=RoleDefs,cn=RoleConfig,cn=AppConfig,<%= partitions.acme.rbpm.driverRoot %>'
netiq:
id: mf
primaryPartitionKey: n
ui:
label: NetIQ
logo: Karma_logotype_weiss.png
icon: logos/ldap.png
# additional stylesheet to load
# this can be used to apply different styles based on the primary partition of the logged-in user
styles: styles/demo-netiq.css
# css class added to the document body
# this can be used to apply different styles based on the primary partition of the logged-in user
# default: primary-partition-<kebabCase(id)>
bodyClassName: netiq-partition
rbpm:
url: https://userapp2.kenoxa.com/IDMProv
href: https://userapp2.kenoxa.com/IDMProv
driverRoot: 'cn=User Application Driver, cn=driverset1, o=system'
credentials:
username: username
password: password
users:
base: 'ou=NetIQ,ou=users,o=data'
roles:
base: 'cn=RoleDefs,cn=RoleConfig,cn=AppConfig,<%= partitions.netiq.rbpm.driverRoot %>'
rbpm:
url: <%= partitions.identity.rbpm.url %>
href: <%= partitions.identity.rbpm.href %>
driverRoot: <%= partitions.identity.rbpm.driverRoot %>
credentials:
username: <%= partitions.identity.rbpm.credentials.username %>
password: <%= partitions.identity.rbpm.credentials.password %>
defaultProvisioningRequestsCategory: dashboard
provisioningRequestCategories:
- accounts
- attestation
- nrf
- service
- entitlements