<div dir="ltr"><div>In shibboleth 2 I created a custom principal class which contained a
map of attributes where I could carry information about the
authentication to scripted attributes in the attribute resolver.<br><br></div><div>I retrieved it in a scripted Attribute in the attribute resolver.xml like this.<br></div><br>subject = requestContext.getUserSession().getSubject();<br>principals = subject.getPrincipals(CustomAuthPrincipal("").getClass());<br>val = principal.get("mycustom attribute");<br><br><div>How do I pass custom data in shibboleth 3?<br><br></div><div>I'm trying to follow the docs but I'm having some trouble.<br><br><a href="https://wiki.shibboleth.net/confluence/display/IDP30/ScriptedAttributeDefinition" target="_blank">https://wiki.shibboleth.net/confluence/display/IDP30/ScriptedAttributeDefinition</a><br><br></div><div>getUserSession is no longer avaiable.<br><br></div><div>I've tried these methods instead to get to the subject but they all return null.<br></div><div><br>resolutionContext.getSubcontext("net.shibboleth.idp.authn.context.AuthenticationContext");<br>resolutionContext.getSubcontext("net.shibboleth.idp.authn.context.SubjectCanonicalizationContext")<br>resolutionContext.getSubcontext("net.shibboleth.idp.authn.context.ExternalAuthenticationContext");<br></div><div><br></div><div>How do I get the custom principal or is there a better method of passing info about the authentication?<br><br></div>-Topher</div>