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 b9cf13c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@
}
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.isSubdomain(domainName, hostName) ? domainName : IdentityUtil.getRootDomain(hostName);
JSONObject contentValueInJson = new JSONObject();
contentValueInJson.put("username", tenantAwareUsername);
Expand Down

0 comments on commit b9cf13c

Please sign in to comment.