Method: Devise::FailureApp#http_auth
- Defined in:
- lib/devise/failure_app.rb
#http_auth ⇒ Object
52 53 54 55 56 57 |
# File 'lib/devise/failure_app.rb', line 52 def http_auth self.status = 401 self.headers["WWW-Authenticate"] = %(Basic realm=#{Devise.http_authentication_realm.inspect}) if http_auth_header? self.content_type = request.format.to_s self.response_body = http_auth_body end |