Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Re-enable respecting JWT tokens in the backend
Marcin Gębalab5597cff4003
diff --git a/saleor/settings.py b/saleor/settings.pyindex e2e5a8f98a..6a6f13e195 100644--- a/saleor/settings.py+++ b/saleor/settings.py@@ -179,7 +179,7 @@ MIDDLEWARE = ['saleor.core.middleware.taxes','social_django.middleware.SocialAuthExceptionMiddleware','impersonate.middleware.ImpersonateMiddleware',- # 'saleor.graphql.middleware.jwt_middleware'+ 'saleor.graphql.middleware.jwt_middleware']INSTALLED_APPS = [diff --git a/tests/conftest.py b/tests/conftest.pyindex d52752b2c6..d4f693c52e 100644--- a/tests/conftest.py+++ b/tests/conftest.py@@ -74,10 +74,7 @@ class ApiClient(Client):@pytest.fixturedef admin_api_client(admin_user):- client = ApiClient(user=admin_user)- # FIXME: Remove client.login() when JWT authentication is re-enabled.- client.login(username=admin_user.email, password='password')- return client+ return ApiClient(user=admin_user)@pytest.fixture@@ -87,10 +84,7 @@ def user_api_client(customer_user):@pytest.fixturedef staff_api_client(staff_user):- client = ApiClient(user=staff_user)- # FIXME: Remove client.login() when JWT authentication is re-enabled.- client.login(username=staff_user.email, password='password')- return client+ return ApiClient(user=staff_user)@pytest.fixture(autouse=True)