0 Replies Latest reply on Nov 12, 2007 6:02 AM by Manuel Martin

    Seam 2.0.0.GA and JAAS integration

    Manuel Martin Newbie


      First of all, sorry for my english. Is not my first language :/

      I'm trying to integrate a Seam application with my custom JAAS Login Module of JBossAS 4.2.2.GA.

      I add the Login Module to JBoss login-config.xml:

      <application-policy name="webLogin">
       <login-module ...>

      Then I add the restrictions in web.xml:


      And set the Login Module in jboss-web.xml:

      As I saw in reference documentation I add the security component in components.xml:
      <security:identity jaas-config-name="webLogin" />

      When I access to the application the container ask to me for a user and password, and seems to validate them correctly, but when I try to add web restrictions as s:hasRole('admin') the restriction doesn't work.

      I try to write the identity in the page #{identity.username} but allways username is blank.

      I don't know if I have something wrong in my configuration but I'm a bit dessesperate.

      Thanks in advance!