Wrinting of my own JdbcUsernamePasswordAuthenticationHandler
Scott Battaglia
scott.battaglia at gmail.com
Thu Nov 1 16:33:17 EDT 2007
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 <lodhur at googlemail.com> 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
> cas at tp.its.yale.edu
> http://tp.its.yale.edu/mailman/listinfo/cas
>
>
--
-Scott Battaglia
LinkedIn: http://www.linkedin.com/in/scottbattaglia
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://tp.its.yale.edu/pipermail/cas/attachments/20071101/24f7437d/attachment.html
More information about the cas
mailing list