Re: Authentication stuff
- From: Alexander Larsson <alexl redhat com>
- To: Marco Pesenti Gritti <mpg redhat com>
- Cc: yarrr-list gnome org
- Subject: Re: Authentication stuff
- Date: Thu, 19 May 2005 09:52:17 +0200
On Tue, 2005-05-17 at 19:06 +0200, Marco Pesenti Gritti wrote:
> Hi Alex,
>
> so I got not registered users to work by reading the cookie.
>
> There are two things I'm not sure about:
>
> 1 In the xmlrpc calls I'm doing this to get the caller:
>
> Person caller = YarrrServlet.getCurrentSession().loadPerson();
Yeah, that looks good.
> 2 To get the person ref from the cookie (value) I'm doing:
>
> Person person = (Person)ReferencableObjectRegistry.lookup(value);
> personRef = person.getRef();
Well, this is sort of overdoing it actually, since it loads the object
from the database just to parse a string to an int. Maybe we can use
ReferencableObjectRegistry.parseReference() to do this. Its a private
function atm, but we can make it public.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Alexander Larsson Red Hat, Inc
alexl redhat com alla lysator liu se
He's an uncontrollable voodoo messiah with nothing left to lose. She's a
man-hating punk femme fatale on the trail of a serial killer. They fight
crime!
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]