-
1. Re: Seam security with JAAS
shane.bryzak Feb 19, 2008 12:37 AM (in response to thejavafreak)Your question isn't really clear. Seam Security already uses JAAS for authentication.
-
2. Re: Seam security with JAAS
thejavafreak Feb 20, 2008 8:35 AM (in response to thejavafreak)Hi Shane, thanks for the reply.
You know that we usually have to create an authenticator component that has an authenticate method inside it. Usually if we are using JPA, we write the query for fetching the user and password from the database. Now what does need to be written inside the authenticate method if we are using JAAS? I'm still blank and have yet no idea regarding this.Thanks in advance
-
3. Re: Seam security with JAAS
shane.bryzak Feb 21, 2008 2:01 AM (in response to thejavafreak)Seam Security simply uses the JAAS API for authentication - it has a default JAAS configuration which uses a special login module, SeamLoginModule, to carry out the authentication process. This login module calls your authenticator.authenticate() method to do the actual work of authentication, so it can contain anything you want, whether it is authenticating the user against a database, or performing an LDAP query or anything else you can dream of.
Now on the other hand, if you don't want to use the default login module (or write your own authenticator method) then you can configure Seam Security to use an alternative JAAS configuration. The security chapter of the docs explain how to do this.