Skip to content

Commit

Permalink
Merge pull request #408 from ImalshaG/tenanted-logout
Browse files Browse the repository at this point in the history
Improve Tenant Resolving Logic during logout for Tenant Qualified URLs
  • Loading branch information
ImalshaG authored Oct 19, 2023
2 parents 2670672 + 6fb76d3 commit 31d2f42
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2240,12 +2240,7 @@ private String getLoggedInTenantDomain(HttpServletRequest req) {
if (!IdentityTenantUtil.isTenantedSessionsEnabled()) {
return SAMLSSOUtil.getTenantDomainFromThreadLocal();
}

String loggedInTenantDomain = req.getParameter(FrameworkConstants.RequestParams.LOGIN_TENANT_DOMAIN);
if (StringUtils.isBlank(loggedInTenantDomain)) {
return IdentityTenantUtil.resolveTenantDomain();
}
return loggedInTenantDomain;
return IdentityTenantUtil.resolveTenantDomain();
}

/**
Expand Down

0 comments on commit 31d2f42

Please sign in to comment.