cameronterry / dark-matter

A highly opinionated domain mapping plugin for WordPress Networks
Other
12 stars 2 forks source link

WIP: SSO upgrade #109

Closed cameronterry closed 1 year ago

cameronterry commented 1 year ago

... still a work in progress ...

Essentially the idea of replacing the third party cookie with localStorage has been abandoned, due to a multitude of reasons. Chief among them: Firefox's State Partitioning.

There are solutions and ways to work around this, but it leads to a number of problems:

  1. The combination of header settings for both the primary domain (which visitors use) and admin domain can potentially interfere with settings needed by people using Dark Matter Plugin.
  2. Point 1 could also lead to unintended complications for the security of WordPress admin and for visitors.
  3. It partly involves advocating or promoting techniques that is not in the best interests of people in regards to privacy, which is the motivating factor involved in Mozilla's and WebKit's introduced of these features which prevents LocalStorage working.
  4. Doesn't work on enough browsers.

Taken altogether, there are too many assumptions and blockers that pursuing the "automatic" approach is not in the best interests of people using this plugin nor supportable with the current privacy focused initiatives and safe-guarding security for site owners.

Third-party cookie / Original approach

Suffers from as many, if not more, issues as localStorage. As such, it has been removed.