This was a bug in the Abstract handler: http://www.ja-sig.org/issues/browse/CAS-590
We were instantiating the JdbcTemplate but not setting the DataSource. -Scott On 11/1/07, Heiko <[EMAIL PROTECTED]> wrote: > > Hello CAS Users, > > I want to write my own AuthenticationHandler. It's derived from > AbstractJdbcUsernamePasswordAuthenticationHandler. > > Within my AuthenticationHandler I need to access the DataSource > via the method getDataSource() of the base class. > > The sections of my deployerConfigContext.xml look like here: > > > <bean id="mydb" class="oracle.jdbc.pool.OracleDataSource"> > <property name="driverType"> > <value> oracle.jdbc.driver.OracleDriver</value> > </property> > <property name="URL"> > <value>jdbc:oracle:thin:@<ip>:<port>:<sid></value> > </property> > <property name="user"> > <value>my_user</value> > </property> > <property name="password"> > <value>my_password</value> > </property> > </bean> > > <bean id="myAuthenticationHandler" > class="org.xy.MyAuthenticationHandler" > > <property name="dataSource" ref="mydb" /> > </bean> > > > <property name="authenticationHandlers"> > <list> > <bean class=" > org.jasig.cas.authentication.handler.support.HttpBasedServiceCredentialsAuthenticationHandler" > /> > <ref bean="myAuthenticationHandler" /> > </list> > </property> > > With CAS 3.0.5 it works well, but with CAS 3.1.1 the call of > getDataSource() > of AbstractJdbcUsernamePasswordAuthenticationHandler returns null! > > What am I doing wrong here? > > Thanks, > Heiko > > _______________________________________________ > Yale CAS mailing list > [email protected] > http://tp.its.yale.edu/mailman/listinfo/cas > > -- -Scott Battaglia LinkedIn: http://www.linkedin.com/in/scottbattaglia
_______________________________________________ Yale CAS mailing list [email protected] http://tp.its.yale.edu/mailman/listinfo/cas
