skater coder

angela chng – Ruby on Rails / PHP web developer & skater girl in Singapore

  • blogabout stuff
  • aboutthis website
  • contactdrop a message

September 23, 2008
Posted by roadburn

Restful_authentication Internet explorer cannot logout http_basic problem

If you’re getting a security box popup like I did, here’s the link to the solution

http://groups.google.com/group/rubyonrails-talk/browse_thread/thread/97981fedc00d98fa/3e435bd3e66952c7?lnk=raot

Basically, just edit /lib/authenticated_system.rb, and add ‘(:xml, :json)’

def access_denied
      respond_to do |format|
        format.html do
          store_location
          redirect_to new_session_path
        end
        format.any(:xml, :json) do
          request_http_basic_authentication ‘Web Password’
        end
      end
    end

 

Make sure your <head> tag has this too:

<META HTTP-EQUIV=”Pragma” CONTENT=”no-cache”> 
<META HTTP-EQUIV=”Expires” CONTENT=”-1″>

Leave a comment

Posted Under Rails

No Comments Yet

You can be the first to comment!

Leave a comment

* = Required

  • CATEGORIES
    • Coding Tips
    • Food
    • Portfolio
    • Rails
    • Sharepoint
    • Wordpress

  • TAGS
    activities AD ADAM ajax architecture authentication bluehost books custom application custom form date design disk partition ECTS event id eventid moss forum guid hotfix iis imap keberos list id lists masterpage moss mysite profiles Rails rails 2.0 reporting services ruby Sharepoint sharepoint 2007 site templates site usage sql server 2005 time updates vhd virtual pc visual studio webparts workflow wss

Subscribe via RSS