4

Rails 3에서 HTTP 다이제스트 인증이 아직 지원됩니까?레일 3 HTTP 다이제스트 인증

레일즈 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 

오류를 반환 3.0.0.beta 레일에 같은 일 :

can't convert nil into String 

나는 실종 뭔가를하거나이 레일 3의 버그? HTTP 기본 인증이 정상적으로 작동합니다.

답변

1

레일 베타 2에서 동일한 문제가 발생합니다.

신속하고 더러운 수정 :

추가

self.config.secret = "result of rake secret" 

authenticate_or_request_with_http_digest("Application") 
관련 문제