Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 14 commits into from
Feb 13, 2021

Conversation

micajuine-ho
Copy link
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.

None yet

3 participants