Rails 2.1 restful_authentication with Internet Explorer

restful_authentication plugin is very helpful, and probably the most common, when developing an authentication system on Rails. I have used it with Rails 1 and 2.0.2 with no problems. But with Rails 2.1, I got some strange behavior.

After the default installation, when you try to access any protected action, you should be redirected to the login page. This works fine with Firefox.
But with IE, I get the http basic authentication window instead!

After asking Google, I couldn't find a solution but discovered that, for some reason, IE doesn't seem to send the right accept headers.

So, temporarily, I have disabled the http basic authentication by commenting the last 3 lines of the access_denied method.

Does anyone know a solution for this problem?

Did you like this article? Bookmark it:

Related Articles

1 Comment

Leave a Comment

If you want to post code, do this:
<pre><code class="ruby|javascript|css|html"> your code here </code></pre>