Skip to content

Add support for publisher purposes consent string #12

Description

@turu

The library's readme states that "This library is a Java reference implementation for dealing with consent strings in the IAB EU's GDPR Transparency and Consent Framework." There are two distinct consent string formats outlined in the specification (v.1.1):

  1. global, vendor consent string (euconsent) as described in https://github.com/InteractiveAdvertisingBureau/GDPR-Transparency-and-Consent-Framework/blob/master/Consent%20string%20and%20vendor%20list%20formats%20v1.1%20Final.md#vendor-consent-string-format-
  2. publisher purposes consent string (pubconsent) as described in https://github.com/InteractiveAdvertisingBureau/GDPR-Transparency-and-Consent-Framework/blob/master/Consent%20string%20and%20vendor%20list%20formats%20v1.1%20Final.md#publisher-purposes-consent-string-format-

However, currently the library appears to support only global, vendor consent string (correct me if I'm wrong). Looking from a publisher's perspective it would surely help if the publisher purposes consent string was supported as well. It makes sense since both consent strings have similar formats so there is potential for reusing significant part of codebase between the two implementations.

Roughly, these would be the things to do:

  1. Refactor existing ConsentStringParser, extracting common logic out so that it can be reused when implementing publisher purposes consent string parser
  2. Rename existing ConsentStringParser so that it's clear it supports global, vendor consent string
  3. Implement publisher purposes consent string parser

What do you think?

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions