Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-154031

Create global JS Utility to set cookies based on user preferences

    Details

    • Type: Story
    • Status: In Development
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: JS APIs and Utilities
    • Labels:
      None

      Description

      Goal of this story is to create a global JS API to create cookies, and make it available to all pages served by the platform.

      The API implementation must obey user's consent before allowing JS client code to set and read a cookie, considering that:

      • Cookie control feature can be turned off. In that case API will allow to create any type of cookie
      • Explicit consent mode can be turned on/off, meaning that, before user expresses the consent, API would allow/deny cookie creation based off on this flag
      • User consent is reflected in four cookies, one per type of cookie

      API should be made available to the page in a way that it can be used from different JS contexts (react apps, fragments, AUI modules)

      More details in the solution proposal section

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              carolina.alonso Carolina Alonso
              Reporter:
              pablo.agulla Pablo Agulla
              Engineering Assignee:
              Carolina Alonso
              Recent user:
              Pier Nicolò Pinna
              Participants of an Issue:
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:

                  Packages

                  Version Package