Skip to content

Latest commit

 

History

History
22 lines (22 loc) · 1.3 KB

2022-05-20-require-users-to-log-into-their-shopware-account-if-token-has-expired.md

File metadata and controls

22 lines (22 loc) · 1.3 KB
title issue author author_email author_github
Require users to log into their Shopware Account if token has expired
NEXT-21092
Frederik Schmitt
fschmtt

Core

  • Added Shopware\Core\Framework\Store\Exception\ShopSecretInvalidException
  • Added Shopware\Core\Framework\Store\Exception\StoreSessionExpiredException
  • Changed Shopware\Core\Framework\Store\Services\StoreClientFactory to use new middlewares
  • Added Shopware\Core\Framework\Store\Services\ShopSecretInvalidMiddleware to log out all users
  • Added Shopware\Core\Framework\Store\Services\StoreSessionExpiredMiddleware to log out a user if their token has expired
  • Added Shopware\Core\Framework\Store\Services\VerifyResponseSignatureMiddleware
  • Added Shopware\Core\Framework\Store\Subscriber\LicenseHostChangedSubscriber to log out all users when the license host changed

API

  • Changed multiple store routes to fail with 403 Forbidden if authentication is required but the user's Shopware Account session has expired

Administration

  • Added storeSessionExpiredInterceptor to retry requests that previously failed with store exceptions in src/core/factory/http.factory.js
  • Changed handleErrorStates to notify the user if their Shopware Account session has expired in src/core/factory/http.factory.js