2 Replies Latest reply on Sep 27, 2007 7:53 AM by likon

    WebAuthentication + default login-module problem

    likon

      Hi,
      I have a problem with the new class WebAuthentication that was added to JBoss AS 4.2.0. When I'am calling it I'm getting an exception that file with users/roles can't be found. If I'm not mistaking this means that WebAuthentication uses different from common portal way (login.jsp) login module.
      How can I configure this?

      For the portal is used application policy "portal". What application policy is used when I'm logging in with the help of WebAuthentication class?

        • 1. Re: WebAuthentication + default login-module problem
          den74

          i had a similar problem, you probably have extended the UsersRolesLoginModule class that is wrote to use a properties file to get the users and their roles. If you want to continue to use that class you have to reimplements tow more methods like this:


          @Override
          protected Properties createRoles(Map arg0) throws IOException {
          // needed to bypass properties file check
          return new Properties();
          }

          @Override
          protected Properties createUsers(Map arg0) throws IOException {
          // needed to bypass properties file check
          return new Properties();
          }

          for me that solved all the problems :)

          • 2. Re: WebAuthentication + default login-module problem
            likon

            No.. the matter is that I don't want to implement my custom login module - I want WebAuthenticator to use default portal login module.