ECMA to access SubjectCanonicalizationContext in Resolver
Cantor, Scott
cantor.2 at osu.edu
Tue Nov 10 13:53:15 EST 2015
On 11/10/15, 12:05 PM, "dev on behalf of Michael A Grady" <dev-bounces at shibboleth.net on behalf of mgrady at unicon.net> wrote:
>Based on the conversation on Shib Users, I've been trying to put an attribute definition in the resolver to access the underlying username the user entered at login. I started with the pretty simple one liner that Scott had suggested, but keep getting "null" returned from trying to bring in the SubjectCanonicalizationContext.
My one liner elided the fact that the profile context variable wasn't populated, that was fixed for 3.2. For the moment you have to walk up from the resolutionContext via getParent and then down. That said, I would have thought the error message would be slightly different.
Also, though, "when" are you running this? If it's not during subject c14n, I don't think that context would still be around. It would be there only if you run the resolver during that step.
-- Scott
More information about the dev
mailing list