Project

General

Profile

Actions

Bug #7022

open

Sitewide announcements should be displayed on, and dismissable from, mapped domains

Added by Boone Gorges almost 6 years ago. Updated over 4 years ago.

Status:
New
Priority name:
Normal
Assignee:
Category name:
Announcements
Target version:
Start date:
2016-12-12
Due date:
% Done:

0%

Estimated time:
Deployment actions:

Description

Currently this can't be done because the AJAX request requires authorization, and cookies aren't sent cross-domain. One of the following things should happen:

- Figure out a way to set the CORS headers in such a way that cookies are sent between domains. This should be possible with withCredentials plus some custom Allow-Origin work, but it needs exploration.
- Figure out a way to ensure that mapped-domain authentication always sets the commons.gc.cuny.edu auth cookie, so that the native domain cookies can be used. See #1508.
- Don't use cookie auth for the AJAX request - could just generate a secret key, or try to implement oAuth2 or something like that.
- Have a catcher on the mapped domain (which would use the mapped cookies) and then use PHP to dismiss the notice using switch_to_blog(). This is the easiest, but makes the plugin less appealing for broader use.


Related issues

Related to CUNY Academic Commons - Feature #1508: Share login cookies across mapped domainsAssignedBoone Gorges2012-01-05

Actions
Related to CUNY Academic Commons - Feature #3501: System(s) for Sitewide AnnouncementsResolvedBoone Gorges2014-09-28

Actions
Actions #1

Updated by Boone Gorges almost 6 years ago

  • Related to Feature #1508: Share login cookies across mapped domains added
Actions #2

Updated by Boone Gorges almost 6 years ago

  • Related to Feature #3501: System(s) for Sitewide Announcements added
Actions #3

Updated by Boone Gorges over 5 years ago

  • Target version changed from 1.11 to 1.12

We haven't really used sitewide announcements yet, which makes this issue less urgent. Let's not take the time for it now.

Actions #4

Updated by Boone Gorges about 5 years ago

  • Target version changed from 1.12 to 1.13
Actions #5

Updated by Boone Gorges over 4 years ago

  • Target version changed from 1.13 to Future release
Actions

Also available in: Atom PDF