1 Reply Latest reply on Feb 2, 2005 1:14 PM by Jesse Wilson

    Not able to logout after login

    donno Newbie

      I deployed a struts app to JBoss 3.2.3 using JBoss'
      UsersRolesLoginModule. In the LogoutAction I invalidate
      the session and redirect to a resource that requires login.
      The resource shows up without a login prompt. Here is
      the part of the web.xml:

      <web-resource-name>Protected All Resources</web-resource-name>

      <!-- Anyone with these roles may enter this area. -->

      <!-- Default login configuration uses form-based authentication -->

      <!-- Security roles referenced by this web application -->


      In login-config.xml of JBoss I have
      <application-policy name = "csr">
      <!-- A simple server login module, which can be used when the number
      of users is relatively small. It uses two properties files:
      users.properties, which holds users (key) and their password (value).
      roles.properties, which holds users (key) and a comma-separated list of
      their roles (value).
      The unauthenticatedIdentity property defines the name of the principal
      that will be used when a null username and password are presented as is
      the case for an unuathenticated web client or MDB. If you want to
      allow such users to be authenticated add the property, e.g.,

      <login-module code = "org.jboss.security.auth.spi.UsersRolesLoginModule"
      flag = "required">
      <module-option name = "usersProperties">users.properties</module-option>
      <module-option name = "rolesProperties">roles.properties</module-option>


      Login works fine but logout doesn't.

      Thanks for help.