Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
76 lines (51 sloc) 2.86 KB

[WFCORE-4496] Adding principal-transformer in aggregate-realm


Elytron currently has an aggregate security realm which is a combination of two or more realms: an authentication realm and one or more authorization realms. Currently, the principal undergoes transformations before being used to load the aggregate identity, but there is no way to transform the principal in between loading the authentication identity and loading the authorization identity. This would be needed in the case where the principal stored in the authentication realm is different than the principal stored in the authorization realm(s).

This enhancement would allow transformations to be applied to the principal after loading the authentication identity and before loading the authorization identity. The principal-transformer attribute will be added to aggregate-realm and would be a reference to a transformer defined in the mappers configuration. It will be an optional attribute.

  • Example configuration:


Issue Metadata


Dev Contacts

QE Contacts

Testing By

[ ] Engineering

[x] QE

Affected Projects or Components

  • WildFly, Security, WildFly-Core, Elytron

Other Interested Projects


Hard Requirements

  • It should be possible to configure an aggregate-realm with the optional attribute principal-transformer which will define transformations to the principal after the authentication identity is obtained but before the authorization identity is obtained. This principal transformer will be a reference to a principal-transformer that has been defined in the mappers configuration in the Elytron subsystem.

Nice-to-Have Requirements


Test Plan

Subsystem parsing and transformer tests will be added. Tests will also be added to the Elytron testsuite and the Elytron subsystem tests to ensure that the principal is correctly transformed after authentication and before authorization.

Community Documentation

Documentation will be added in the "Aggregate Security Realm" section under elytron/components in the WildFly documentation to indicate that a principal transformer can be used between authentication and authorization for aggregate-realm

You can’t perform that action at this time.