The Properties Role Mapping Listener populates the context's role mapping
from a properties file. The keys represent application roles (e.g., admin, user, uservisor,
etc.) while the values represent technical roles (e.g., DNs, SIDs, UUIDs, etc.). A key can
also be prefixed if, e.g., the properties file contains generic application configuration
as well: app-roles..
This listener must only be nested within
Context elements.
The following additional attributes are supported by the
Properties Role Mapping Listener:
|
Attribute
|
Description
|
|---|
roleMappingFile |
The path to the role mapping properties file. You can use protocol webapp:
and whatever ConfigFileLoader supports.
The default value is webapp:/WEB-INF/role-mapping.properties.
|
keyPrefix |
The prefix to filter from property keys. All other keys will be ignored which do
not have the prefix.
|