From 3bafa2e514ac07acb56842a7e075f49fe41797cc Mon Sep 17 00:00:00 2001 From: SujanSanjula96 Date: Fri, 3 Jul 2026 14:59:23 +0530 Subject: [PATCH] Pass anonymous profile tracker as a property in self registration --- .../src/main/webapp/self-registration-process.jsp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/identity-apps-core/apps/recovery-portal/src/main/webapp/self-registration-process.jsp b/identity-apps-core/apps/recovery-portal/src/main/webapp/self-registration-process.jsp index 0ae798d51b7..c96d7ce6113 100644 --- a/identity-apps-core/apps/recovery-portal/src/main/webapp/self-registration-process.jsp +++ b/identity-apps-core/apps/recovery-portal/src/main/webapp/self-registration-process.jsp @@ -411,6 +411,15 @@ properties.add(spIdProperty); properties.add(appIsAccessUrlAvailableProperty); + // Pass the anonymous profile tracker as a property so that it is available through the identity context + // during registration (e.g. for external profile linking), in addition to the cdsProfile claim above. + if (StringUtils.isNotBlank(cdsProfileCookie)) { + Property anonymousProfileTrackerProperty = new Property(); + anonymousProfileTrackerProperty.setKey("anonymous_profile_tracker"); + anonymousProfileTrackerProperty.setValue(cdsProfileCookie); + properties.add(anonymousProfileTrackerProperty); + } + SelfUserRegistrationRequest selfUserRegistrationRequest = new SelfUserRegistrationRequest(); selfUserRegistrationRequest.setUser(selfRegistrationUser); selfUserRegistrationRequest.setProperties(properties);