You got it: Authenticator is called before Filter. If you want to get in
before the Authenticator is called, then you need to use the
(Tomcat-specific, and totally non-portable) Valve.
Oliver Wulff [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
I wrote a custom
of the constraints)
-Original Message-
From: Oliver Wulff [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 02, 2003 11:51 PM
To: Tomcat Users List
Subject: Antwort: RE: Antwort: RE: Antwort: RE: user principal, realm
I wrote a custom HttpServletRequestWrapper and a filter. I've
overriden
, 2003 11:51 PM
To: Tomcat Users List
Subject: Antwort: RE: Antwort: RE: Antwort: RE: user principal, realm
I wrote a custom HttpServletRequestWrapper and a filter. I've
overriden the method getUserPrincipal() and isUserInRole(). The second one
just returns
true back (for test purposes).
Now
I have to overwrite the getUserPrincipal in this valve. I tried the
following:
public void invoke(Request request, Response response, ValveContext
context)
throws IOException, ServletException
{
logger.info(invoke);
HttpRequestWrapper wrapper = new HttpRequestWrapper
I wrote a custom HttpServletRequestWrapper and a filter. I've overriden the
method getUserPrincipal() and isUserInRole(). The second one just returns
true back (for test purposes).
Now, I have a problem if I define a security-constraint in the web.xml. I
get the following error if I try to access
Although I havn't tried it, I guess yes.
I think you have to define your own RequestWrapper
that lets you set the principal.
-Original Message-
From: Oliver Wulff [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 01, 2003 2:42 PM
To: [EMAIL PROTECTED]
Subject: user principal, realm
:
Thema: RE: user principal, realm
01.04.2003 14:50
Which class/methods are you talking about ?
-Original Message-
From: Oliver Wulff [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 01, 2003 5:02 PM
To: Tomcat Users List
Subject: Antwort: RE: user principal, realm
I took a look to JavaDoc and saw that all methods are deprecated
org.apache.catalina.connector.RequestWrapper
I'm wondering if I could just implement my custom authenticator (compare
BasicAuthenticator.java) or a custom Realm. But I don't know how I can
register my authenticator.
As mentioned already I want to read the delegated user from a http header
-
From: Oliver Wulff [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 02, 2003 9:25 AM
To: Tomcat Users List
Subject: Antwort: RE: Antwort: RE: user principal, realm
org.apache.catalina.connector.RequestWrapper
I'm wondering if I could just implement my custom
authenticator
10 matches
Mail list logo