diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2019-01-16 20:12:40 -0500 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2019-01-17 16:08:34 -0500 |
commit | 1a6a3e06ed7242d9a4ed66e9c3d77035bf1362a1 (patch) | |
tree | 040abfe7591fd0290655d85e6ddd503cb0744688 /actionpack/test/controller/http_digest_authentication_test.rb | |
parent | 46ac5fe69a20d4539a15929fe48293e1809a26b0 (diff) | |
download | rails-1a6a3e06ed7242d9a4ed66e9c3d77035bf1362a1.tar.gz rails-1a6a3e06ed7242d9a4ed66e9c3d77035bf1362a1.tar.bz2 rails-1a6a3e06ed7242d9a4ed66e9c3d77035bf1362a1.zip |
Remove secret_token rack env and cookie upgrade code
Now that secret_token was removed all this code is now dead.
Diffstat (limited to 'actionpack/test/controller/http_digest_authentication_test.rb')
-rw-r--r-- | actionpack/test/controller/http_digest_authentication_test.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/actionpack/test/controller/http_digest_authentication_test.rb b/actionpack/test/controller/http_digest_authentication_test.rb index b133afb343..dd4ff85d11 100644 --- a/actionpack/test/controller/http_digest_authentication_test.rb +++ b/actionpack/test/controller/http_digest_authentication_test.rb @@ -44,7 +44,10 @@ class HttpDigestAuthenticationTest < ActionController::TestCase setup do # Used as secret in generating nonce to prevent tampering of timestamp @secret = "4fb45da9e4ab4ddeb7580d6a35503d99" - @request.env["action_dispatch.key_generator"] = ActiveSupport::LegacyKeyGenerator.new(@secret) + @request.env["action_dispatch.key_generator"] = ActiveSupport::CachingKeyGenerator.new( + ActiveSupport::KeyGenerator.new(@secret) + ) + @request.env["action_dispatch.http_auth_salt"] = "http authentication" end teardown do |