Search code examples
jsf-2glassfishjaasform-authenticationwildfly-8

wildfly 8 jaas issue


I was using glassfish for last 3 years and I moved to wildfly 8 recently. In wildfly i configured to use form based authentication with jaas, I noticed a strange thing on my change password page on the website. After login to the website and when i change the password i noticed jaas failed. When I debug i saw wildfly issuing a jdbcrealm db check everytime a request comes to the restricted area.

Is it good that wildfly check on db everytime for auth even after first successful login ? I am sure glassfish doesnt do that. ?

And secondly how do I fix jaas auth failing after changing the password ? should I need to login again ?

thank you

Update

it was because of cache-type, i havnt defined it in security-domain


Solution

  • Set the cache-type:

    <security-domain name="MyRealm" cache-type="default">
    ...