Forum: Ruby on Rails restful_authentication - using http auth in IE

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
79ad5a1770c5cf086735a10ef7db6598?d=identicon&s=25 zero0x (Guest)
on 2009-01-24 11:32
(Received via mailing list)
Hi,

my restful_authentication plugin is always logging in using http auth.

But only in IE. In Safari/Firefox in displays a form.

Where do I tell it to use html login form?
E64d436cb6ecdfe7be5b350776f58c90?d=identicon&s=25 Chris Bartlett (Guest)
on 2009-01-25 23:25
(Received via mailing list)
I didn't want http auth or cookie-based logins at all, so I modified
the current_user method in lib/authenticated_system.rb like this:

    def current_user
      # Original method allowed login from http authentication or
cookie, but we are disabling that.
      # @current_user ||= (login_from_session || login_from_basic_auth
|| login_from_cookie) unless @current_user == false
      @current_user ||= login_from_session unless @current_user ==
false
    end

If you do make this change, be aware that if you install a newer
version of restful_authentication your modifications will be
overwritten. That wasn't an issue for me.
F15fdc7cb2e911b3808837f2be244add?d=identicon&s=25 AD (Guest)
on 2009-01-27 05:32
(Received via mailing list)
wierd that this happens in IE though, I had the same issue. Did you
ever properly resolve it?  We need http auth for API calls.

On Sun, Jan 25, 2009 at 5:24 PM, Chris Bartlett
This topic is locked and can not be replied to.