1 Reply Latest reply on Jun 24, 2014 10:50 PM by David Zukerman

    Programmatic Authentication (login)

    David Zukerman Newbie

      Hi all!

      I'm a Glassfish JEE developer looking forward to migrate to WildFly.

      So far my experience was good enough and I was able to migrate a simple application from Glassfish to WildFly.

       

      However, I'm having a big issue when using the HttpServletRequest.login(username, password) method: if I execute the method from a Servlet, then, I will be able to access secure servlets with no hassle, but when accessing a RestWS (implemented with RestEasy), the container will ask for authentication.

       

      If I use the <auth-method>BASIC</auth-method> configuration, after entering the credentials, I'm able to access secured servlets and web services.

       

      Any ideas?

       

      Thank you!

      David.