From b708db617d057c3e57d440b813cbc4f7c5298a42 Mon Sep 17 00:00:00 2001 From: asha15 <165079T@uom.lk> Date: Wed, 29 Nov 2023 01:23:32 +0530 Subject: [PATCH] end tenant flow --- .../identity/recovery/listener/TenantManagementListener.java | 1 + 1 file changed, 1 insertion(+) diff --git a/components/org.wso2.carbon.identity.recovery/src/main/java/org/wso2/carbon/identity/recovery/listener/TenantManagementListener.java b/components/org.wso2.carbon.identity.recovery/src/main/java/org/wso2/carbon/identity/recovery/listener/TenantManagementListener.java index 0552ebd4fa..1043cd25e0 100644 --- a/components/org.wso2.carbon.identity.recovery/src/main/java/org/wso2/carbon/identity/recovery/listener/TenantManagementListener.java +++ b/components/org.wso2.carbon.identity.recovery/src/main/java/org/wso2/carbon/identity/recovery/listener/TenantManagementListener.java @@ -41,6 +41,7 @@ public void onTenantCreate(TenantInfoBean tenantInfoBean) throws StratosExceptio PrivilegedCarbonContext.getThreadLocalCarbonContext().startTenantFlow(); PrivilegedCarbonContext.getThreadLocalCarbonContext().setTenantDomain(tenantDomain); PrivilegedCarbonContext.getThreadLocalCarbonContext().setTenantId(tenantInfoBean.getTenantId()); + PrivilegedCarbonContext.endTenantFlow(); } @Override