Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Revert "Add crit header to jwt/jws (#15441)" (#15473)

Arture40e62d9d0ef
diff --git a/saleor/core/jwt_manager.py b/saleor/core/jwt_manager.py
index d7d96c241a..d075669562 100644
--- a/saleor/core/jwt_manager.py
+++ b/saleor/core/jwt_manager.py
@@ -164,7 +164,7 @@ class JWTManager(JWTManagerBase):
payload,
cls.get_private_key(), # type: ignore[arg-type] # key is typed as str for all algos # noqa: E501
algorithm="RS256",
- headers={"kid": cls.get_key_id(), "crit": ["b64"]},
+ headers={"kid": cls.get_key_id()},
)
@classmethod
@@ -173,7 +173,7 @@ class JWTManager(JWTManagerBase):
payload,
key=cls.get_private_key(), # type: ignore[arg-type] # key is typed as str for all algos # noqa: E501
algorithm="RS256",
- headers={"kid": cls.get_key_id(), "crit": ["b64"]},
+ headers={"kid": cls.get_key_id()},
is_payload_detached=is_payload_detached,
)