List Info

Thread: Question regarding using custom authentication with WCK




Question regarding using custom authentication with WCK
country flaguser name
United States
2007-06-18 13:52:06
Hello all.

I am planing to use Slide for my project and as part of the

requirements, I need to have a custom authentication. I
noticed the 
existence of such hook in WCK and modified the
FakeSessionManager.java 
to see how it works and it indeed worked as advertised. So
far, I have 
hard-coded username/passwords in FakeSessionManager.java for
testing 
purposes. Now I want to make a database call to validate a 
username/password and I was wondering if someone could give
me a hint as 
how to initialize a  db connection there in
FakeSessionManager.java (or 
any other implementation of SessionAuthenticationManager
interface for 
that matter).

Many thanks in advance,
Ali.


------------------------------------------------------------
---------
To unsubscribe, e-mail: slide-user-unsubscribejakarta.apache.org
For additional commands, e-mail: slide-user-helpjakarta.apache.org


RE: Question regarding using custom authentication with WCK
country flaguser name
United States
2007-06-18 14:13:47
For a very similar scenario, I retrieved a
javax.sql.DataSource from the
Tomcat JNDI context in a static initializer and retrieved a
connection in
the constructor. Here is how to create a data source in
Tomcat:

http://tomcat.apache.org/tomcat-5.0-d
oc/jndi-datasource-examples-howto.html

Hope this helps.

Cheers,
Reza

-----Original Message-----
From: Ali Naddaf [mailto:alinaddaf.org] 
Sent: Monday, June 18, 2007 2:52 PM
To: Slide Users Mailing List
Subject: Question regarding using custom authentication with
WCK

Hello all.

I am planing to use Slide for my project and as part of the

requirements, I need to have a custom authentication. I
noticed the 
existence of such hook in WCK and modified the
FakeSessionManager.java 
to see how it works and it indeed worked as advertised. So
far, I have 
hard-coded username/passwords in FakeSessionManager.java for
testing 
purposes. Now I want to make a database call to validate a 
username/password and I was wondering if someone could give
me a hint as 
how to initialize a  db connection there in
FakeSessionManager.java (or 
any other implementation of SessionAuthenticationManager
interface for 
that matter).

Many thanks in advance,
Ali.


------------------------------------------------------------
---------
To unsubscribe, e-mail: slide-user-unsubscribejakarta.apache.org
For additional commands, e-mail: slide-user-helpjakarta.apache.org

No virus found in this incoming message.
Checked by AVG Free Edition. 
Version: 7.5.472 / Virus Database: 269.9.0/852 - Release
Date: 6/17/2007
8:23 AM
 

No virus found in this outgoing message.
Checked by AVG Free Edition. 
Version: 7.5.472 / Virus Database: 269.9.0/852 - Release
Date: 6/17/2007
8:23 AM
 


------------------------------------------------------------
---------
To unsubscribe, e-mail: slide-user-unsubscribejakarta.apache.org
For additional commands, e-mail: slide-user-helpjakarta.apache.org


[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )