On Sat, 5 Jul 1997, Walter Eaves wrote: > Hi, > > I've installed a GenericAuthFilter on a directory, installed some > extensions of PostableResources. I now want to find out who has accessed > the resource. > > Can't seem to find a way of simply finding out which authenticated user > is making use of a resource? If you have a GenericAuthFilter installed, the request will have an Authorization field which can be accessed like this: String user = (String) request.getState(AuthFilter.STATE_AUTHUSER); user is null if the request has no Authorization: field. /\ E tae koe ki Aotearoa kaua e whawhai; e u koe ki uta, /\ / \ kei mahi ki tai ki Tu, puhia he angina; e mau ki tai / \ \/\ ki Noho, he huhu, he pepe, he hanehane. / \ / \ - Yves Lafon - W3C / INRIA - ylafon@w3.org -Received on Monday, 7 July 1997 03:47:09 GMT
This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 9 April 2012 12:13:26 GMT