How to create SubjectCanonicalizationContext
Cantor, Scott
cantor.2 at osu.edu
Thu Jan 21 23:37:43 EST 2016
> But I do not know how to create and pass the
> SubjectCanonicalizationContext from the authentication flow to c14n
> subflow.
I think that's partly because you're trying to do all this with webflow expressions, and that's not how it's meant to work. You need to build Java beans that act as flow actions and wire them together.
The code that does this step in most of the standard flows is in AbstractValidationAction, at the end of the buildAuthenticationResult method. Most of the flows do the "final" authentication work by creating actions that inherit from that class and they just override some methods. The subclass implements doExecute() and will call buildAuthenticationResult.
Contractually speaking, the c14n context must be placed below the profileRequestContext (the root) as a child, and it has to be populated as shown in the base class that I mentioned. That's it.
-- Scott
More information about the dev
mailing list