[jboss-jira] [JBoss JIRA] (ELY-1115) Revisit the meaning of aggregate-principal-transformer

Darran Lofthouse (JIRA) issues at jboss.org
Fri May 5 13:34:00 EDT 2017


     [ https://issues.jboss.org/browse/ELY-1115?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Darran Lofthouse updated ELY-1115:
----------------------------------
    Fix Version/s: 1.1.0.Beta42
                       (was: 1.1.0.Beta41)


> Revisit the meaning of aggregate-principal-transformer
> ------------------------------------------------------
>
>                 Key: ELY-1115
>                 URL: https://issues.jboss.org/browse/ELY-1115
>             Project: WildFly Elytron
>          Issue Type: Bug
>          Components: Utils
>    Affects Versions: 1.1.0.Beta38
>            Reporter: Jan Kalina
>            Assignee: Jan Kalina
>            Priority: Blocker
>              Labels: management-model, principal-transformer
>             Fix For: 1.1.0.Beta42
>
>
> Meaning of Elytron {{aggregate-principal-transformer}} should be revised. Also one point about {{regex-validating-principal-transformer}} is included since it seems its use cases are related to aggregate-principal-transformer. See:
> * It seems that it works like "It iterates through assigned Principal Transformers and returns the first non-null transformed Principal" - is it correct and intended behaviour? Is "aggregate-principal-transformer" appropriate name for transformer which works like that?
> * What is the use case for regex-validating-principal-transformer. This transformer just checks some pattern and if it does not match then it rewrites Principal name to null. I think it can be useful in aggregate-principal-transformer, when it can check that name matches some pattern in first transformer (regex-validating-principal-transformer) and then transforms principal in another transformer (e.g. constant-principal-transformer). Is there any other use case?
> * When can aggregate-principal-transformer return any other Principal Transformer than first of the list? I think only user implemented custom-principal-transformer can currently return null (which enable iterating to another principal transformer in the list). Also regex-validating-principal-transformer can be used for returning non-first transformer, as I mentioned in previous point. Is there any real scenario when aggregate-principal-transformer can be used?
> This issue is reported based on previous discussion with engineering.



--
This message was sent by Atlassian JIRA
(v7.2.3#72005)


More information about the jboss-jira mailing list