[jboss-user] [JBoss Seam] - Re: Exception with basic authentication

lowecg2004 do-not-reply at jboss.com
Fri Nov 30 04:45:56 EST 2007


I had a look at the code for AuthenticationFilter.processBasicAuth().  It actually looks like Identity is not being found in the context:

   private void processBasicAuth(HttpServletRequest request, 
  |             HttpServletResponse response, FilterChain chain)
  |       throws IOException, ServletException
  |    {
  |       Context ctx = new SessionContext( new ServletRequestSessionMap(request) );
  |       Identity identity = (Identity) ctx.get(Identity.class);
  |       
  |       // identity is null
  |    }


For what it's worth, here is the HTTP request:

GET /MisuraServices/auth/authenticate.seam HTTP/1.0
  | Host: localhost:8080
  | User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.10) Gecko/20071115 Firefox/2.0.0.10
  | Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
  | Accept-Language: en-us,en;q=0.5
  | Accept-Encoding: gzip,deflate
  | Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
  | Keep-Alive: 300
  | Cookie: sys_testCookie=True; JSESSIONID=65C3BE650E56D7F8506901B811CC6B97

Cheers,

C.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4109195#4109195

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4109195



More information about the jboss-user mailing list