Allen,

You should be placing your Authentication Handler source code in 
CAS_HOME/localPlugins/src and any required libraries in 
CAS_HOME/localPlugins/lib

Then, edit CAS_HOME/webapp/WEB-INF/deployConfigContext.xml

You'll want to replace the 
SimpleTestUsernamePasswordAuthenticationHandler.  The syntax follows the 
normal Spring XML configuration, so it would look something like this:

<bean
    class="com.allenyoung.MyAuthenticationHandler" />


If you had additional properties to set it would look like this:
<bean
    class="com.allenyoung.MyAuthenticationHandler">
    <property name="prop1" value="prop1value" />
    <property name="prop2" value="prop2value" />
</bean>

Finally, you would execute "ant war" from the CAS_HOME/localPlugins 
directory and this would build a war file for you containing all the 
necessary stuff.

If you need additional information about Spring XML bean configuration, 
there is a great reference here:
http://static.springframework.org/spring/docs/2.0.x/reference/beans.html

Hope that helps!
-Scott

Scott Battaglia
Application Developer, Architecture & Engineering Team
Enterprise Systems and Services, Rutgers University
v: 732.445.0097 | f: 732.445.5493 | [EMAIL PROTECTED] 



Allen Young wrote:
> Hi all,
>  
> I'm pretty new to CAS. I've written my own AuthenticationHandler 
> according to the instruction on CAS's web site, but how can I 
> configure it in CAS so I can you it? The default cas.war use a simple 
> AuthenticationHandler that check if the username is the same with the 
> password. So I think I should put my AuthenticationHandler class file 
> in cas.war\WEB-INF\classes, and do something with the web.xml. Am I 
> right? If so, what should I write in web.xml?
>  
> Say my AuthenticationHandler is 
> com.allenyoung.MyAuthenticationHandler, please give me the piece of 
> code which I should add to web.xml. Thanks a lot!
> ------------------------------------------------------------------------
>
> _______________________________________________
> Yale CAS mailing list
> [email protected]
> http://tp.its.yale.edu/mailman/listinfo/cas
>   
_______________________________________________
Yale CAS mailing list
[email protected]
http://tp.its.yale.edu/mailman/listinfo/cas

Reply via email to