This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JBoss/WildFly and the fly likes logging in from any page again Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "logging in from any page again " Watch "logging in from any page again " New topic

logging in from any page again

Karol Oslowski
Ranch Hand

Joined: Jul 22, 2005
Posts: 51
Dear All,

for I while I am working on an old problem - I am trying to be enable users to log in from any page. I am using jboss 4.03 SP1 and myfaces/trinidad. I successfully developed a custom login module. When I was using "standard" JASS configuration everything was perfectly fine. When trying to find out how to allow users to log in from any page I found this
message explaining how to integrate SecurityFilter with jboss.

And again everything seemed to work fine. My login module methods are being called, the login method is being called with success... But, the method:

returns false. Actually I've checked it and everything (principal, and rolename) are set correctly simply there are no roles attached to the principal in the realm I get.

I don't put here more source code since it can be found under the first link but of course I can provide more.

Thanks in advance for any help,

With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: logging in from any page again
Similar Threads
Simple form-based authentication using JAAS
java.lang.SecurityException: Authentication exception, principal=null
Want to use different data source than my security principal
Very frustrated with no idea how to check logins
Deploying EJB using MySql as a datasource