-
1. Re: Java Swing client and JBoss strategy
juha Sep 14, 2003 1:21 AM (in response to jobor)Configure a database login module. Your swing client won't use it directly, rather every EJB invocation it makes to the server side will be authenticated with the user information from the database. If you want to have a login screen at the beginning of your Swing app to authenticate the user, just send a noop EJB invocation with the username and password you collected from your login dialog.
-- Juha -
2. Re: Java Swing client and JBoss strategy
jobor Oct 2, 2003 1:22 AM (in response to jobor)Thanks for the answer. But I have a next question after trying this construction in a test.
I receive an error form JBoss from the SecurityInterceptor checkSecurityAssociation method saying "Authentication exception, principal=".
On the client i did a succesful implementation of the ClientLoginModule I think but what I see and think is that the username is not transported to JBoss?
What could be wrong.
Johan -
3. Re: Java Swing client and JBoss strategy
jobor Oct 2, 2003 2:49 AM (in response to jobor)Another file which is important and I forgot to attach.
Johan -
4. I solved the problem
jobor Oct 2, 2003 2:48 PM (in response to jobor)Yes I did. The only thing I did was removing the line with the text "password-stacking="useFirstPass"" in the file myjaas.config. I don't know why I had this line in my file but I think I copied it from an example.
I also do not know, at this moment, the meaning of this property. Maybe sometime later. The important thing is I can make a Swing GUI with security on JBoss.
Johan -
5. Re: I solved the problem
juha Oct 3, 2003 1:30 PM (in response to jobor)The useFirstPass option applies if you are using more than one login module in your JAAS Configuration and only want authentication done once.
-- Juha