From 4b19e58174c782b2869b28d4139eb9c82353fe54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Valim?= Date: Fri, 6 Oct 2023 11:53:33 +0200 Subject: [PATCH] Allow latest plug_crypto --- mix.exs | 6 +++--- test/phoenix/token_test.exs | 6 ------ 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/mix.exs b/mix.exs index 423cd8fe81..1cbf061f76 100644 --- a/mix.exs +++ b/mix.exs @@ -71,14 +71,14 @@ defmodule Phoenix.MixProject do defp deps do [ {:plug, "~> 1.14"}, - {:plug_crypto, "~> 1.2"}, + {:plug_crypto, "~> 1.2 or ~> 2.0"}, {:telemetry, "~> 0.4 or ~> 1.0"}, {:phoenix_pubsub, "~> 2.1"}, - # TODO drop phoenix_view as an optional dependency in Phoenix v2.0 - {:phoenix_view, "~> 2.0", optional: true}, {:phoenix_template, "~> 1.0"}, {:websock_adapter, "~> 0.5.3"}, + # TODO drop phoenix_view as an optional dependency in Phoenix v2.0 + {:phoenix_view, "~> 2.0", optional: true}, # TODO drop castore when we require OTP 25+ {:castore, ">= 0.0.0"}, diff --git a/test/phoenix/token_test.exs b/test/phoenix/token_test.exs index fbb81b5a28..cbecbe4479 100644 --- a/test/phoenix/token_test.exs +++ b/test/phoenix/token_test.exs @@ -90,12 +90,6 @@ defmodule Phoenix.TokenTest do assert signed1 != signed2 end - test "passes key_length options to key generator" do - signed1 = Token.sign(conn(), "id", 1, signed_at: 0, key_length: 16) - signed2 = Token.sign(conn(), "id", 1, signed_at: 0, key_length: 32) - assert signed1 != signed2 - end - test "key defaults" do signed1 = Token.sign(conn(), "id", 1, signed_at: 0)