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? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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.
On Jan 24, 11:31 pm, zero0x
<zero0...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> 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?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---
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 <c.bartlett-wUU9E3n5/m4qAMOr+u8IRA@public.gmane.org> wrote:> > 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. > > > On Jan 24, 11:31 pm, zero0x <zero0...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> 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? > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---