security « Bean « JSF Q&A





1. How can I get the logged-in user's username using JDBCRealm?    stackoverflow.com

I'm running Glassfish 3.0 and I'm implementing JDBCRealm for login authentication. The username and roles are saved in a table called usertable. The authentication is working as expected. But the problem ...

2. CDI SessionScoped Bean instance remains unchanged when login with different user    stackoverflow.com

I've been looking for the workaround of this problem for rather plenty of time and no result, so I ask question here. Simply speaking, I'm using a CDI SessionScoped Bean User in ...

3. application security vs container managed security and access to session object in bean    coderanch.com

Hello, for an application managed authentication I use a derby database. In the UserBean the logout() method is called in case the user logs out. However, in the first code sample the session object is always null. If the declaration and definition of the variables facesContext and session is included inside the logout() method then it works (code sample 2)!? Shouldn't ...