restful authentication plugin doesn't work with internet explorer and mod_rails

43 views
Skip to first unread message

Flavio Castelli

unread,
May 16, 2008, 3:18:54 AM5/16/08
to Phusion Passenger Discussions
Hi, I'm experimenting a really strange problem.
I've successfully deployed my rails app with mod_rails, and everything
works fine using firefox or konqueror.
Instead, using internet explorer (both version 6 and 7) I'm unable to
perform the login operation.
After submitting username and password my app redirects to the home
page and says hello user foo.
With ie I'm redirected to the home page but I'm seen as not logged-in.

In development environment (using webrick from script/server) internet
explorer works fine.

I've looked Apache logs and production.log but I didn't find anything
relevant.

So I've dumped two authentication sequences with wireshark.
You can find them here:
- konqueror auth: http://www.flavio.castelli.name/files/login_konq
- ie6 auth: castelli.name/files/login_ie

I'm using rails 2.0.2, with passenger 1.0.5 and latest
restful_authentication plugin. Everything has been installed with gem
under ubuntu hardy.

Thanks in advance
Flavio

Hongli Lai

unread,
May 16, 2008, 4:40:27 AM5/16/08
to phusion-...@googlegroups.com

Hi.

I see that Internet Explorer does not send back cookies even though it
should. That is, after a response with "Set-Cookie", IE does not send a
"Cookie" header. Could you check whether your cookie settings are correct?

Regards,
Hongli Lai
--
Phusion | The Computer Science Company

Web: http://www.phusion.nl/
E-mail: in...@phusion.nl
Chamber of commerce no: 08173483 (The Netherlands)

Flavio Castelli

unread,
May 16, 2008, 5:46:19 AM5/16/08
to Phusion Passenger Discussions
On May 16, 10:40 am, Hongli Lai <hon...@phusion.nl> wrote:
> I see that Internet Explorer does not send back cookies even though it
> should. That is, after a response with "Set-Cookie", IE does not send a
> "Cookie" header. Could you check whether your cookie settings are correct?

Talking with codafoo on #passenger IRC channel we discovered the
cause of my problem: my Intranet url contained a '_' character.
From http://support.microsoft.com/kb/909264 :
IE0005: By-design. Setting cookies fails when the hostname of the
server contains an underscore.

After changing the hostname everything worked fine.

Obviously ie didn't show any warning message...

Thanks
Flavio

Btw: mod_rails rules ;)

Reply all
Reply to author
Forward
0 new messages