HTTPダイジェスト認証はRails3でも引き続きサポートされますか?
Rails 2.3.5で次のコードを試しましたが、動作します。
class Admin::BaseController < ApplicationController
before_filter :authenticate
USERS = { "lifo" => "world" }
def authenticate
authenticate_or_request_with_http_digest("Application") do |name|
USERS[name]
end
end
end
これで、Rails3.0.0.betaの同じものがエラーを返します。
can't convert nil into String
私は何かが足りないのですか、それともこれはRails 3のバグですか?HTTP基本認証は正常に機能します。