authenticate_or_request_with_http_basic

11 views
Skip to first unread message

Guido Pesch

unread,
Aug 22, 2013, 7:17:49 AM8/22/13
to RubyOnRails UG Germany on behalf of onruby
Hallo Liste,
 
ich nutzte in meinem Projekt (ApplicationController) authenticate_or_request_with_http_basic
 

class ApplicationController < ActionController::Base
protect_from_forgery

before_filter :authenticate

 def authenticate

login_success = authenticate_or_request_with_http_basic("Login to Importtool") do |username, password|

username == APP_CONFIG[:authenticate][:user] && password == APP_CONFIG[:authenticate][:password]
end

end

soweit ist auch alles Gut.

Ich möchte nun einen Logout Mechanismus einbauen.

Wie bekomme ich das hin das der authenticate Dialog wieder angezeigt wird.

Habe im Netz schon gesucht aber nix passendes gefunden.

 

Danke und Gruß

Guido 

 

 

Andreas Haller

unread,
Aug 22, 2013, 7:32:03 AM8/22/13
to RubyOnRails UG Germany on behalf of Guido Pesch
Hallo Guido

AFAIK unterstützt HTTP Basic Authentication kein logout: http://en.wikipedia.org/wiki/Basic_access_authentication
> --
> You received this message because you are subscribed to the Google Groups "RubyOnRails UG Germany" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-ug-ge...@googlegroups.com.
> To post to this group, send email to rubyonrails...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-ug-germany/1397407350.118877.1377170269574.open-xchange%40cc-app1.netcologne.de.
> For more options, visit https://groups.google.com/groups/opt_out.

signature.asc

Guido Pesch

unread,
Aug 22, 2013, 7:37:13 AM8/22/13
to RubyOnRails UG Germany on behalf of Andreas Haller
Danke Dir

> RubyOnRails UG Germany on behalf of Andreas Haller <rubyonrails...@googlegroups.com> hat am 22. August 2013 um 13:32 geschrieben:
------------------------------------
Guido Pesch-Mann
Zum Bellerhammer 9 - 50226 Frechen
Mail: guido...@netcologne.de
Mobil: 0177 59 61 256
Reply all
Reply to author
Forward
0 new messages