<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Jul 26, 2015 at 12:38 PM, Cantor, Scott <span dir="ltr"><<a href="mailto:cantor.2@osu.edu" target="_blank">cantor.2@osu.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 7/24/15, 4:26 PM, "users on behalf of David Langenberg" <<a href="mailto:users-bounces@shibboleth.net">users-bounces@shibboleth.net</a> on behalf of <a href="mailto:davel@uchicago.edu">davel@uchicago.edu</a>> wrote:<br>
<br>
>I have an SP asking for AuthnContextClassRef as an attribute (of course encoded with their own local encoding). Any thoughts on how to turn that particular part of the response into an attribute?<br>
<br>
</span>I'm not sure which end we're talking about. You mean at the IdP (and I assume v3)? That field doesn't exist at the time any attribute logic is running (and it obvbiously doesn't exist at all in SAML 1).<br></blockquote><div><br></div><div>Yep, I'm the IdP and yes, on v3.</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
The custom Principal objects in the authenticated subject are where it comes from. If the RequestedPrincipalContext contains a matchingPrincipal, that's what gets used, assuming it's of an appropriate type. If not, an injected function [1] is used to determine it.<br>
<br>
The SAML 2 action is [2]. The SAML 1 action is [3].<br>
<br>
So in short, you would have to duplicate all that in a script to do it in the resolver and count on it not changing, though it can't really change fundamentally without altering behavior. It's not something I would advise obviously. The injected function used is part of the API though.<br></blockquote><div><br></div><div>Ok, yeah, gonna go tell this SP to go re-read the SAML spec and fix their implementation to use the already-provided mechanisms for this.</div><div><br></div><div>Thanks</div><div><br>Dave</div><div> </div></div><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div>David Langenberg<div>Identity & Access Management Architect</div><div>The University of Chicago</div></div></div></div>
</div></div>