logo       

Re: Authenticaing Multiple Users: msg#00118

Subject: Re: Authenticaing Multiple Users
On 20 nov. 03, at 20:28, Avi Bryant wrote:


On Nov 20, 2003, at 11:05 AM, Sven Van Caekenberghe wrote:

In an attempt to authenticate multiple users for a Seaside app, I made a subclass of WAAuthenticatedSession and overwrote the method #authenticateUser:password: returning true or false based on our own test.

This didn't work at all, not when choosing that session class in /seaside/config, and not when using WAController>>registerAsApplication:sessionClass:

In both cases the effect was quite bizar: Seaside kept sending redirects until Safari gave up.

What am I doing wrong, or is there a better approach ?

Hi Sven,

I managed to replicate this by throwing an error in the #authenticateUser:password: method. I imagine that if you put a "self halt" there you will find that there's some exception being thrown in yours as well.

My guess is that what's happening is that it keeps trying to display the error page, but requiring authentication for that too, resulting in an infinite recursion. Obviously this is a bug - I think it will get fixed naturally as a result of some of the work I've been doing towards the next release.

Avi

Hi Sven and Avi,

I ran into exactly the same issue last week trying to solve the same problem.

The error I made (which caused the same Safari redirection problem as Sven reports) was to not return aBoolean in my home-grown:

MultipleUserAuthenticatedSession>>authenticateUser: username password: password

At one point I had the method returning False (on username/password mis-match) instead of false. Yes, I've been spending too much time with Python... At the time I felt too silly to blog my error...

Ian.


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
linux.arklinux....    user-groups.lin...    kde.usability/2...    ietf.ipp/2002-0...    mail.spam.spamc...    os.netbsd.devel...    audio.cd-record...    text.unicode.de...    php.documentati...    games.fps.halfl...    window-managers...    suse.oracle.gen...    bug-tracking.gn...    video.dvdrip.us...    xfree86.cvs/200...    java.netbeans.m...    network.argus/2...    culture.sf.kill...    debian.ports.al...    freebsd.questio...    qplus.devel/200...    handhelds.palm....   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe