Overview
The Core Connector Textfile provides an Authorization Data Provider, which retrieves user attributes used for access control from the bundle's config file.
Configuration
dbp_relay_core_connector_textfile:
# used to define user groups
groups:
- name: DEVELOPERS
users:
- junior
- senior
# used to declare available attributes
attributes:
- name: ROLE_DEVELOPER
default_value: false # default value: 'null' for scalar and '[]' for array attributes
- name: ORGANIZATION_UNITS
array: true # default value: 'false'
# used to define values for the attributes
attribute_mapping:
- name: ROLE_DEVELOPER
groups:
- DEVELOPERS
value: true
- name ORGANIZATION_UNITS
groups:
- DEVELOPERS
values:
- 1
- 2
- name ORGANIZATION_UNITS
users:
- foo
values:
- 3
- The
groups
node is used to define a user groups with a groupname
and a list ofusers
(user identifiers). - The
attributes
node is used to declare available user attributes given an attributename
and an optionaldefault_value
andarray
type declaration - The
attribute_mapping
node is used to define attribute values: Each mapping entry specifies avalue
(orvalues
for array type attributes) for attributename
for one or manyusers
and/orgroups
.