Re: Antwort: RE: Antwort: RE: Antwort: RE: user principal, realm

2003-04-03 Thread Bill Barker
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

RE: Antwort: RE: Antwort: RE: Antwort: RE: user principal, realm

2003-04-03 Thread Ralph Einfeldt
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

Re: Antwort: RE: Antwort: RE: Antwort: RE: user principal, realm

2003-04-03 Thread Bill Barker
, 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

Antwort: Re: Antwort: RE: Antwort: RE: Antwort: RE: user principal, realm

2003-04-03 Thread Oliver Wulff
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

Antwort: RE: Antwort: RE: Antwort: RE: user principal, realm

2003-04-02 Thread Oliver Wulff
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

Antwort: RE: user principal, realm

2003-04-01 Thread Oliver Wulff
I took a look to JavaDoc and saw that all methods are deprecated. Is it really the right way? My first thought was that it's very low level. Doesn't there exist an easier solution for my problem? ** Oliver Wulff Zürich

RE: Antwort: RE: user principal, realm

2003-04-01 Thread Ralph Einfeldt
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

Antwort: RE: Antwort: RE: user principal, realm

2003-04-01 Thread Oliver Wulff
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

RE: Antwort: RE: Antwort: RE: user principal, realm

2003-04-01 Thread Ralph Einfeldt
- 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