For the complete documentation index, see llms.txt. This page is also available as Markdown.

Consent String Examples

This page contains samples of different consent strings that can be generated as part of the binary Didomi Consent String format under different scenarios.

Didomi Consent String := Sections~Signature |												 Sections.DID~Signature |
                         Sections.DID.OUID~Signature |
                         Sections..OUID~Signature

Given Header, Purpose Consent, Purpose Legitimate Interest, Vendors Consent and Vendors Legitimate Interest sections bit encoded in the first segment:

BGHWv4UYba5-dZnABdKu__D6iWHsD6iWHsCABFKVEACKUqgAAERY4AABEWMA

After the first . there is a Device ID (DID):

AQAACAFkVONkgUIavQPm

and after the second . there is an Organization User ID (OUID):

XF229L4wQrauAgOe/AGP0SP7fa7bclNhB0

and finally, the last segment after the ~ is the signature:

CAISHAgCEhJnd3NfMjAyMzA0MDYtMF9SQzEaAmVuIAEaBgiAo82hBg

Putting this all together, the final consent string would look like:

BGHWv4UYba5-dZnABdKu__D6iWHsD6iWHsCABFKVEACKUqgAAERY4AABEWMA.AQAACAFkVONkgUIavQPm.XF229L4wQrauAgOe/AGP0SP7fa7bclNhB0~CAISHAgCEhJnd3NfMjAyMzA0MDYtMF9SQzEaAmVuIAEaBgiAo82hBg

Given Header, Purpose Consent, Purpose Legitimat Interest, Vendors Consent and Vendors Legitimate Interest sections bit encoded in the first segment:

After the first . there is a Device ID (DID):

and finally, having no OUID, the last segment after the ~ is the signature:

Putting this all together, the final consent string would look like:

Given Header, Purpose Consent, Purpose Legitimat Interest, Vendors Consent and Vendors Legitimate Interest sections bit encoded in the first segment:

Even though we don’t have a DID, we still store a first . as a placeholder to represent a nullable optional DID here, which will contain no information. We will then add a second . characterm indicating that there is an Organization User ID (OUID):

and finally, the last segment after the ~ is the signature:

Putting this all together, the final consent string would look like:

Given Header, Purpose Consent, Purpose Legitimat Interest, Vendors Consent and Vendors Legitimate Interest sections bit encoded in the first segment:

Since we have neither a DID nor an OUID, we will not store any . placeholders. We will directly add the final segment after the ~ which is the signature:

Putting this all together, the final consent string would look like:

Final Encoding Example

When stored or transmitted, the Consent String binary format is encoded as web-safe base64 with the following character set:

Last updated