Method: Devise::FailureApp#http_auth
- Defined in:
- lib/devise/failure_app.rb
#http_auth ⇒ Object
34 35 36 37 38 39 |
# File 'lib/devise/failure_app.rb', line 34 def http_auth self.status = 401 self.headers["WWW-Authenticate"] = %(Basic realm=#{Devise.http_authentication_realm.inspect}) self.content_type = request.format.to_s self.response_body = http_auth_body end |