Resolve user-id and domain names
- Last Updated: June 7, 2022
- 1 minute read
- OpenEdge
- Version 12.2
- Documentation
The OEClientPrincipalFilter contains the logic that processes an OpenEdge ID to yield a user-id and domain name. The user-id and domain are used in creating a client-principal object that is subsequently passed to the ABL application code.
The OEClientPrincipalFilter logic follows these general steps after an authentication provider has successfully authenticated the user:
- If the input OpenEdge ID is fully qualified (user-id plus domain name), proceed to Step 3.
- Try to resolve the domain name by doing the following:
- First, look for a user role in the
OEClientPrincipalFilter.domainRoleFilterproperty, which is recognized as holding a domain name. If the domain name is found, proceed to Step 3.Note: All OEClientPrincipalFilter properties are set in the oeablSecurity.properties file. - Next, try using the
OEClientPrincipalFilter.domainproperty value. If the domain name is found, proceed to Step 3. - If the domain name remains unresolved after Steps 2a and 2b, raise an error condition.
- First, look for a user role in the
- Create a client-principal object and populate its data fields.
- If the
OEClientPrincipalFilter.registryFileproperty is configured, then use its value as the domain access code (DAC) for all domain names.Note: TheOEClientPrincipalFilter.keyis no longer supported. - If the
OEClientPrincipalFilter.registryFileproperty is configured, use the domain name (either input directly in Step 1 or resolved by one of the methods in Step 2) to look up the domain's DAC. - If the DAC cannot be resolved, raise an error condition.
- Seal the client-principal with the DAC and store it in the user's HTTP login session context for use in subsequent client requests.