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