Repository navigation
Concierge identityMap passthrough - #168
Merged
rymorale merged 5 commits intoSep 21, 2026
Merged
Conversation
Previously the SDK sent only the ECID to the conversation and feedback endpoints, dropping any additional identities the customer set via Identity.updateIdentities (e.g. hashedEmail, CRMID, custom namespaces). Now the full EdgeIdentity identityMap is carried verbatim: - ConciergeState stores the whole identityMap; ECID is derived from it and kept as the readiness signal (updateExperienceCloudId -> updateIdentity). - The request/feedback bodies serialize the map via JSONObject (escaping arbitrary keys/values), replacing the hardcoded ECID-only block. - Namespaces are forwarded as-is (no interpretation/relabeling); priority and identity-graph rules are configured server-side in AEP. - Log namespace names only, never id values (PII). Adds unit tests for the full-map, ECID-only (no regression), and empty-map cases, plus auth-token coexistence, and documents the capability in the implementation guide. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
JSONObject.toString() returns null rather than throwing on an unserializable map, so the previous runCatching/getOrElse fallback was never exercised (and would have emitted "identityMap": null). Replace it with an explicit null-coalescing fallback to an empty object, and add tests for the serialization-failure and empty-identityMap branches. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
The `clear resets state to initial values` test populated identityMap but never verified it was nulled after clear(). Add the missing assertion so a future selective-reset refactor that forgets identityMap is caught directly. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
BNanda99
marked this pull request as ready for review
September 15, 2026 15:59
prudrabhat
approved these changes
Sep 16, 2026
prudrabhat
left a comment
Contributor
There was a problem hiding this comment.
LGTM.
@BNanda99 - please verify the following on an emulator
- logs with/without additional identities
- valid responses streamed from concierge
Member
Author
yes tested on emulator and the identityMap is passed with additional identities and only ECID is passed when no identity is passed. The concierge is providing valid responses |
…feature/concierge-identitymap-passthrough
The Identities section re-documented the Edge Identity updateIdentities API, which belongs to the identity extension's docs. Replace the inline sample with a link to the official Edge Identity API reference so there is a single source of truth; keep only the Brand Concierge-specific behavior (verbatim forwarding, ECID auto-included, server-side rules). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
rymorale
added a commit
to rymorale/aepsdk-concierge-android
that referenced
this pull request
Sep 21, 2026
The upstream/dev merge (PR adobe#168) added full identityMap passthrough via identityMapJson(), but only wired it into the feedback request body. createXdmObject (used by chat and data-handoff requests) still built its own bespoke ECID-only identityMap inline, so it never picked up the passthrough behavior — breaking 4 ConciergeConversationServiceClientTest cases after the merge. createXdmObject now reuses identityMapJson(state), the same helper the feedback path already relies on.
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.
Forwards the full Edge Identity identityMap to the Concierge conversation and feedback requests, instead of hardcoding an ECID-only block. Any additional identities an app has set via Identity.updateIdentities(_:) (AEPEdgeIdentity) — e.g. a lowercase hashedEmail, a CRMID, or any org-specific namespace — are now forwarded verbatim in xdm.identityMap, alongside ECID.
Description
Changes:
Related Issue
Motivation and Context
Today the Concierge SDK sends only the ECID to the conversation and feedback endpoints, hardcoding "identityMap": { "ECID": [ { "id": "" } ] }. Customers need to forward additional identities they've already set on the device via Identity.updateIdentities(_:) so namespace priority/uniqueness (e.g. CRMID as primary) can be resolved server-side in AEP. The SDK was silently dropping that data; this change stops dropping it.
How Has This Been Tested?
Ran ./gradlew :concierge:testPhoneDebugUnitTest — full :concierge suite green (rebased on latest dev).
Added unit tests: full identityMap forwarded verbatim (ECID + hashedEmail + custom namespace), ECID-only baseline (no regression), absent map → empty {}, and identityMap + auth-token coexistence.
Verified both customer paths: ECID-only still forwards the ECID; a full identityMap forwards all namespaces.
Screenshots (if appropriate):
Types of changes
Checklist: