Skip to content

✨ [amp-consent] Accept purposeConsentMap from external consent UI flow#32638

Merged
micajuine-ho merged 14 commits intoampproject:masterfrom
micajuine-ho:granularPromptUISrc
Feb 13, 2021
Merged

✨ [amp-consent] Accept purposeConsentMap from external consent UI flow#32638
micajuine-ho merged 14 commits intoampproject:masterfrom
micajuine-ho:granularPromptUISrc

Conversation

@micajuine-ho
Copy link
Copy Markdown
Contributor

@micajuine-ho micajuine-ho commented Feb 12, 2021

Partial for #31607

Allow our external consent flow (from promptUISrc) accept a purposeConsents within the consent decision post message:

          parent.postMessage(
             {
                type, 
                action,
                info,
                consentMetadata,
                purposeConsents, /* new */
              },
              "*"
           );

If present, the map will be validated and stored in the consent-state-manager, iff the consent action was ACCEPT or REJECT.
We are only receiving the purposeConsents right now, we will send them to the 3p consent dialog iframe once we store.

Ignore whitespace changes to examples/amp-consent/diy-consent.html.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants