Skip to content

Commit

Permalink
Remove fallback mechanism for the signed cookies from super tenant
Browse files Browse the repository at this point in the history
  • Loading branch information
sadilchamishka committed Dec 10, 2024
1 parent cb7e045 commit 283a8dc
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -187,10 +187,6 @@ public String getCookieValue(JsServletRequest request, Object... params) {
.getTenantDomain();
boolean isValid = IdentityUtil.validateSignatureFromTenant(valueString, signature,
tenantDomain);
// Fallback mechanism for already signed cookies.
if (!isValid) {
isValid = SignatureUtil.validateSignature(valueString, signature);
}
if (!isValid) {
log.error("Cookie signature didn't matched with the cookie value.");
return null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,6 @@ public String getCookieValue(JsServletRequest request, Object... params) {
String tenantDomain = PrivilegedCarbonContext.getThreadLocalCarbonContext()
.getTenantDomain();
boolean isValid = IdentityUtil.validateSignatureFromTenant(valueString, signature, tenantDomain);
// Fallback mechanism for already signed cookies.
if (!isValid) {
isValid = SignatureUtil.validateSignature(valueString, signature);
}
if (!isValid) {
log.error("Cookie signature didn't matched with the cookie value.");
return null;
Expand Down

0 comments on commit 283a8dc

Please sign in to comment.