Skip to content

Commit

Permalink
Merge pull request #6904 from Yoshani/master
Browse files Browse the repository at this point in the history
Set root domain of custom domain for ALOR cookie
  • Loading branch information
Yoshani authored Sep 20, 2024
2 parents 8ccf611 + 32eeb23 commit 71ad05d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/great-pears-applaud.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@wso2is/identity-apps-core": patch
---

set root domain of proxy hostname in alor cookie
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 71ad05d

Please sign in to comment.