Skip to content

Commit

Permalink
get root domain of custom domain for alor
Browse files Browse the repository at this point in the history
  • Loading branch information
Yoshani committed Sep 20, 2024
1 parent 27597ab commit f9f83fa
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -359,9 +359,8 @@
} else {
tenantAwareUsername = username + "@" + user.getTenantDomain();
}
String domainName = application.getInitParameter(AUTO_LOGIN_COOKIE_DOMAIN);
String hostName = ServiceURLBuilder.create().build().getProxyHostName();
String cookieDomain = IdentityUtil.isSubdomain(domainName, hostName) ? domainName : hostName;
String cookieDomain = IdentityUtil.getRootDomain(hostName);
JSONObject contentValueInJson = new JSONObject();
contentValueInJson.put("username", tenantAwareUsername);
Expand Down

0 comments on commit f9f83fa

Please sign in to comment.