<div dir="ltr">I have an arguably crazy use case for LDAP authn that I'll sketch out briefly. We want the ability to set the SASL authorization ID based on artifacts in the request like relying party ID and principal ID. Daniel and I discussed an implementation strategy and it looks like an ldaptive Activator component is the way to go. It's a pretty straightforward implementation except for one obstacle: need to access the context tree from a component way outside a flow execution context.<div><br></div><div>It's pretty easy to imagine a lookup function of Function<HttpServletRequest, String> that would leverage the shibboleth.HttpServletRequest component to get at the request, and if the PRC were accessible as, say, a request attribute, it would be trivial to get at the needed subcontexts. I would like to propose that a simple one-liner be added to InitializeProfileRequestContext to support this case:<div><br></div><div>((HttpServletRequest) springRequestContext.getExternalContext().getNativeRequest()).setAttribute(ProfileRequestContext.BINDING_KEY, prc);<br></div><div><br></div><div>Seems generally useful and easy to implement. Thoughts?</div><div><br></div><div>M</div><div><br></div></div></div>