<div dir="ltr"><div>Scott... Thanks so much for the speedy and detailed response. For now, I have chosen to access the NativeRequest as you described. Thanks again. John<br></div><div><br></div><div>On Tue, Aug 25, 2015 at 6:35 AM, Cantor, Scott <span dir="ltr"><<a href="mailto:cantor.2@osu.edu" target="_blank">cantor.2@osu.edu</a>></span> wrote:<br></div><div><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span class="">On 8/25/15, 2:03 AM, "dev on behalf of John Manaloto" <<a href="mailto:dev-bounces@shibboleth.net">dev-bounces@shibboleth.net</a> on behalf of <a href="mailto:manalotoj@gmail.com">manalotoj@gmail.com</a>> wrote:<br>
><br>
>How do I access either the userSession or the HttpServletRequest from my custom data connector (extends AbstractDataConnector)?<br>
<br>
</span>Both are frowned on because that makes use of the connector impossible over the back channel. We don't have a clean model for distinguishing the use of the resolver in the two cases, so we favor designs that do not depend on that distinction.<br>
<br>
On the front channel, the user session is available (if at all) from a SessionContext child, but the data that matters is the Java Subject, which is in a SubjectContext.<br>
<br>
There is no direct access to the servlet layer. There are other use cases for accessing it, so I would suggest filing a RFE to have it added to the scripting context, but for a custom connector, you have a couple of options.<br>
<br>
You could actually have Spring inject it as a property, and have your custom parser inject a bean reference to shibboleth.HttpServletRequest.<br>
<br>
Or you can access it by way of Spring Web Flow by accessing a subcontext of the PRC called SpringContext. It contains the SWF RequestContext (yes, the names get really confusing). That carries methods that will get you to what they call the NativeRequest, which is the HttpServletRequest.<br>
<span class=""><font color="#888888"><br>
-- Scott<br>
<br>
--<br>
To unsubscribe from this list send an email to <a href="mailto:dev-unsubscribe@shibboleth.net">dev-unsubscribe@shibboleth.net</a><br>
</font></span></blockquote></div><br></div></div></div>