Repository navigation
Let the store end every sign-in of an account on sign-out - #1115
Merged
Merged
Conversation
added 2 commits
November 24, 2026 16:29
…t, and POST breaks theme links
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A copied cookie outlived the sign-out. The sign-in cookie is a ticket the server keeps no record of. Signing out deleted it from the browser, but a copy taken before (shared computer, malware, a proxy log) kept working until it expired (a year on the storefront) or until the password changed. The server checks only the
PasswordTokenthe ticket carries, and sign-out left that token unchanged.Changes
CustomerSettings.SignOutOnAllDevices, under Settings → Customer settings → security tab, in the Admin and Store panels).PasswordToken, as a password change does. That ends every sign-in of the account, on other devices too, including the panels and the frontend API tokens (JwtBearerCustomerAuthenticationServicechecks the same token).Admin.Settings.Customer.SignOutOnAllDevicesinDefaultLanguage.xmlandUpgrade/en_250.xml.Notes
SameSite=Lax, so an image or frame on another site sends no cookie. A cross-site link can only sign a visitor out, and making sign-out a POST would break every theme's sign-out link and bookmarked/logoutURLs.Tests
CookieAuthenticationServiceTests:Grand.Web.Common.Tests(784),Grand.Web.Tests(686),Grand.Web.Admin.Tests(2137),Grand.Web.Store.Tests(245),Grand.Web.Vendor.Tests(53),Grand.Mapping.Tests(243, customer settings snapshots now include the new field).