What does your custom binder do?

On Sat, Aug 28, 2010 at 5:17 AM, petefox <[email protected]> wrote:

> Hello everybody,
>
> I must to migrate a running CAS 3.3.5 to 3.4.2.1 on JBoss 4. In 3.3.5 we
> have extended the UsernamePasswordCredential-class with the custom property
> "country" (= class MyCredentials). For this we have added in file
> "cas-servlet.xml" the following entries:
>
>        <!-- my extensions -->
>        <bean id="authenticationViaFormAction"
> class="org.jasig.cas.web.flow.AuthenticationViaFormAction"
>
>  p:centralAuthenticationService-ref="centralAuthenticationService"
>                p:warnCookieGenerator-ref="warnCookieGenerator"
>                p:credentialsBinder-ref="credentialsBinder"
>
>  p:formObjectClass="org.integration.credentials.MyCredentials" />
>
>        <!-- my extensions -->
>        <bean id="credentialsBinder"
> class="org.integration.credentials.MyCredentialsBinder" />
>
> In CAS 3.4.2.1 I removed the entries and adjusted the "login-webflow.xml"
> as following:
>
>        <view-state id="viewLoginForm" view="casLoginView"
> model="credentials">
>        <var name="credentials"
> class="org.integration.credentials.MyCredentials" />
>        <binder>
>            <binding property="username" />
>            <binding property="password" />
>            <binding property="country" />
>        </binder>
>        <on-entry>
>            <set name="viewScope.commandName" value="'credentials'" />
>        </on-entry>
>                <transition on="submit" bind="true" validate="true"
> to="realSubmit">
>            <set name="flowScope.credentials" value="credentials" />
>            <evaluate
> expression="authenticationViaFormAction.doBind(flowRequestContext,
> flowScope.credentials)" />
>        </transition>
>        </view-state>
>
> BUT: Where must I set my custom
> org.integration.credentials.MyCredentialsBinder ????
>
> Help is very appreciated!
> --
> You are currently subscribed to [email protected] as:
> [email protected]
> To unsubscribe, change settings or access archives, see
> http://www.ja-sig.org/wiki/display/JSG/cas-user
>

-- 
You are currently subscribed to [email protected] as: 
[email protected]
To unsubscribe, change settings or access archives, see 
http://www.ja-sig.org/wiki/display/JSG/cas-user

Reply via email to