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

CMP Integration Testing Tool #47

Open
hbruce27 opened this issue Apr 27, 2018 · 1 comment
Open

CMP Integration Testing Tool #47

hbruce27 opened this issue Apr 27, 2018 · 1 comment
Labels
Alpha Support 5 Test Clients - 5/1

Comments

@hbruce27
Copy link
Collaborator

hbruce27 commented Apr 27, 2018

Summary:
The format of the consent cookie is pretty obfuscated, which makes testing difficult. We need a thin tool to turn the cookie into some human readable format so that our partners can test their CMP implementation by comparing inputs and outputs.

Acceptance Criteria:
As a partner (advertiser/publisher), I should have access to a CMP integration testing tool
As a partner, I should be able to feed a consent cookie into the testing tool, and get returned the "contents" of that cookie in a human readable format. (specifically, what type(s) of consent have been given, and to which data partners)

Details:
The UI for this should be simple, but clean enough to share with external teams.
"IAB Tech Lab Transparency and Consent Framework Cookie and Vendor List v1.1" can be found here:
https://docs.google.com/document/d/1UmarlyN3mwDZOcECil996vPjmE9Xds-FoLGhzC4xySY/edit
"IAB Consent String and Vendor List Format: Transparency & Consent Framework" can be found here:
https://github.com/InteractiveAdvertisingBureau/GDPR-Transparency-and-Consent-Framework/blob/master/Consent%20string%20and%20vendor%20list%20formats%20v1.1%20Final.md

@hbruce27 hbruce27 added the Alpha Support 5 Test Clients - 5/1 label Apr 27, 2018
@SupahNickie
Copy link
Contributor

The decoding logic can be found in https://github.com/digi-trust/cmp/blob/master/src/lib/cookie/cookie.js and https://github.com/digi-trust/cmp/blob/master/src/lib/cookie/cookieutils.js . The useful call you can make to the CMP to read the cookie's data after it has loaded is window.__cmp('getVendorConsents'), which returns a Promise.

Please feel free to ask any further questions!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Alpha Support 5 Test Clients - 5/1
Projects
None yet
Development

No branches or pull requests

2 participants