Hiya Sebastian.

> So you suggest that I do something like this:
> 1. Authenticate the user with a client side JAAS login module

We are not actually performing any client side authentication
as such, we use the jboss JAAS login module solely to capture
the user's credentials.  The captured information is passed
by the client interceptors to the jboss server when the beans
(session or entity) are invoked.

Our client does not know if the credentials are valid until it
calls a bean method.

> 2. In any case invoke a arbitrary bean method on a bean under 
> a security
> domain to get the server side JAAS login module invoked.

Yep.  At this point the jboss server invokes our real JAAS module
and we can authenticate the credentials and prevent access if
necessary.

This works for us because our client calls a session bean to obtain
user specific information before proceeding with any of our main
screens.  If this fails (it is an unchecked method) then the client
knows that the credential are invalid and that the request was not
denied because of the user's roles.

> 3. Account for the login failure using the server side JAAS module.
> 
> Is this right?
> Is the bean invocation the only way I can get a server side 
> JAAS module
> involved for authentication?

It's the only way that I am aware of.

        Kev

Kevin Conner
This is a personal e-mail. Any views or opinions presented are 
solely those of the author and do not necessarily represent those 
of Orchard Information Systems Ltd.


-------------------------------------------------------
This SF.net email is sponsored by: Scholarships for Techies!
Can't afford IT training? All 2003 ictp students receive scholarships.
Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more.
www.ictp.com/training/sourceforge.asp
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to