Remove SF1 (precise geolocation) consent validation for EUID#2338
Merged
Conversation
The Special Feature 1 validation was a legacy requirement from LiveRamp that is no longer needed. This change allows EUID token generation for users who have the required TCF purpose consents but don't have SF1 (precise geolocation) enabled. Resolves: UID2-6532 Co-authored-by: Cursor <cursoragent@cursor.com>
…ture is missing Ensures TCF consent validation does not require SF1 (PreciseGeolocationData) opt-in. Co-authored-by: Cursor <cursoragent@cursor.com>
jon8787
approved these changes
Feb 3, 2026
| v2Payload.put("email", emailAddress); | ||
| // TCF string with all required purposes but WITHOUT PreciseGeolocation special feature (feature 1) | ||
| String tcfStringWithoutPreciseGeolocation = createTcfConsentString( | ||
| new int[] { 21 }, // vendor consent |
Contributor
There was a problem hiding this comment.
minor: Is it possible to rewrite this without needing createTcfConsentString?
e.g. TCStringEncoder.newBuilder().addVendorConsent(..)..addVendorLegitimateInterest(...)...
Only worthwhile if we don't have to include unrelated fields such as version().
Contributor
Author
There was a problem hiding this comment.
hmm i'll leave it for now
| final boolean allowPreciseGeo = tcResult.getTCString().hasSpecialFeature(TransparentConsentSpecialFeature.PreciseGeolocationData); | ||
|
|
||
| if (!userConsent || !allowPreciseGeo) { | ||
| if (!userConsent) { |
Contributor
There was a problem hiding this comment.
seems like TransparentConsentSpecialFeature is no longer used, should we remove it or remove the values it has currently?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Test plan