<div dir="ltr">I am tasked with configuring the Impersonation intercept for Shibboleth 5, but there is one particular requirement that doesn't seem to be supported by any interface. Within the GeneralImpersonationPolicy, we would like to implement the following:<br><br>Any user who has an eduPersonEntitlement value of the form "ENTITYID;;Impersonate;;USER", where ENTITYID is the requester RelyingPartyId, should be shown the impersonation interface. <br><br><div>We would like to partially match values prefixed with the RelyingPartyId found in ProfileRequestContext. I assume the correct approach would be to use the shibboleth.Conditions.RegexAttribute bean to match everything after ENTITYID. But how can I construct a pattern prefixed by RelyingPartyId, or some other value found in the ProfileRequestContext, to supply to RegexAttribute? For example:<br></div><div><br></div><div><entry key="GeneralImpersonationPolicy"><br>        <bean parent="shibboleth.PredicateAccessControl"><br>            <constructor-arg><br>                <bean parent="shibboleth.Conditions.RegexAttribute"><br>                    <property name="attributeId" value="eduPersonEntitlement" /><br>                    <property name="pattern"</div><div>                        value="#{ProfileRequestContext...getRelyingPartyId()};;Impersonate;;.*" /><br></div><div>                    </property><br>                </bean></div><div>            ...<br></div><div><br></div>Thank you</div>