SubjectCanonicalizationContext Initialization

Cantor, Scott cantor.2 at osu.edu
Mon Nov 4 12:04:37 EST 2013


On 11/4/13, 11:57 AM, "Marvin Addison" <marvin.addison at gmail.com> wrote:

>I'm trying to set up a demo webapp to integrate the CAS profile flow
>into the authentication flow and I'm getting tripped up when handing
>off to the subject canonicalization flow. As I understand it, it's the
>responsibility of the parent flow to set up contexts needed by a
>delegate subsystem, but I simply don't see where that's happening in
>the sample authn flows in java-idp-testbed.

Very end of AbstractValidationAction#buildAuthenticationResult()

// Transfer the subject to a new c14n context.
        
profileRequestContext.getSubcontext(SubjectCanonicalizationContext.class,
true).setSubject(result.getSubject());


>I believe I need to create
>a custom action to create a new SubjectCanonicalizationContext and
>make it a child of AuthenticationContext, but I wanted to confirm my
>understanding before proceeding.

You shouldn't need to, assuming the CAS profile flow is handing off to the
main authentication subflow. C14N should happen as part of the
authentication sub-subflows (that's confusing) I created (or that others
will create). The parent flow in this case is the authentication subflow,
not your profile flow.

If I'm wrong, just explain a bit more what you're doing and I can advise.

-- Scott




More information about the dev mailing list