<div dir="ltr">Thanks again for your time and help Scott.  I may have talked the stakeholders into making the www site an SP that gets authenticated against the IdP.  <div><br></div><div>If that doesn&#39;t happen....  is there anything that would prevent me from accessing a domain level cookie within my servlet?</div>

</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jul 29, 2014 at 12:37 PM, Cantor, Scott <span dir="ltr">&lt;<a href="mailto:cantor.2@osu.edu" target="_blank">cantor.2@osu.edu</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">On 7/29/14, 1:23 PM, &quot;snekse&quot; &lt;<a href="mailto:snekse@gmail.com">snekse@gmail.com</a>&gt; wrote:<br>


&gt;<br>
&gt;You state that &quot;any information in the request to the IdP is accessible<br>
&gt;from the login context via the API&quot;.  Looking at the API,<br>
&gt;loginContext.getProperty seems to be the only thing that would make sense<br>
&gt;of where I might pull request information. (1.) Would the original<br>
&gt;request params be in here?<br>
<br>
</div>No. The SAML information in the request is spread out across many<br>
different properties, and for a SAML 2 request, the Saml2LoginContext<br>
subtype contains the rest. An unsolicted request is turned into a mock<br>
SAML 2 AuthnRequest internally to unify the way the code interacts.<br>
<br>
There is nothing you can access that isn&#39;t part of the incoming request or<br>
the environmental settings of the IdP itself, and SAML expressly disallows<br>
passing other information via bindings. The way you get other information<br>
in is via SAML extensions inside the message itself. That doesn&#39;t work for<br>
Unsolicited, but it can be done by mocking up real SAML requests and<br>
sending them into the IdP.<br>
<div class=""><br>
&gt;If I added a &#39;target&#39; param to my /idp/profile/SAML2/Unsolicited/SSO<br>
&gt;request, it seems like that gets saved off as the relayState for user<br>
&gt;later when building the SAML message.<br>
<br>
</div>It does, yes.<br>
<div class=""><br>
&gt; I could embed the key param into the relayState, but I wouldn&#39;t want to<br>
&gt;pass that to the SP.  (2.) Is there a way to extract the relayState, then<br>
&gt;alter it for the duration of the request?<br>
<br>
</div>I don&#39;t think so. There&#39;s no setter, so I would assume that means it&#39;s not<br>
changeable.<br>
<div class=""><br>
&gt;As I slowly start drifting away from the &quot;correct&quot; solution... a filter<br>
&gt;seems like an option.  Before the redirect, alter the redirect URL to<br>
&gt;append the &#39;key&#39; param.  Despite making my skin crawl, a hack solution is<br>
&gt;better than no solution.<br>
<br>
</div>We have a different opinion about that.<br>
<div class="HOEnZb"><div class="h5"><br>
-- Scott<br>
<br>
--<br>
To unsubscribe from this list send an email to <a href="mailto:users-unsubscribe@shibboleth.net">users-unsubscribe@shibboleth.net</a><br>
</div></div></blockquote></div><br></div>