Skip to content

Commit

Permalink
Merge pull request #7174 from VivekVinushanth/vv-stageeu-fixalor
Browse files Browse the repository at this point in the history
Fix alor
  • Loading branch information
VivekVinushanth authored Dec 4, 2024
2 parents d9e878e + f45c6e9 commit 084dc6a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
<%@ page import="java.util.HashMap" %>
<%@ page import="java.util.List" %>
<%@ page import="java.util.Map" %>
<%@ page import="org.wso2.carbon.identity.core.util.IdentityUtil" %>
<%@ page import="javax.servlet.http.Cookie" %>
<%@ page import="java.util.Base64" %>
<%@ page import="org.wso2.carbon.core.util.SignatureUtil" %>
Expand Down Expand Up @@ -226,7 +227,7 @@
JSONObject cookieValueInJson = new JSONObject();
cookieValueInJson.put("content", content);
String signature = Base64.getEncoder().encodeToString(SignatureUtil.doSignature(content));
String signature = Base64.getEncoder().encodeToString(IdentityUtil.doSignature(content, tenantDomain));
cookieValueInJson.put("signature", signature);
String cookieValue = Base64.getEncoder().encodeToString(cookieValueInJson.toString().getBytes());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
<%@ page import="org.apache.commons.lang.StringUtils" %>
<%@ page import="org.owasp.encoder.Encode" %>
<%@ page import="org.wso2.carbon.core.SameSiteCookie" %>
<%@ page import="org.wso2.carbon.core.util.SignatureUtil" %>
<%@ page import="org.wso2.carbon.identity.core.ServiceURLBuilder" %>
<%@ page import="org.wso2.carbon.identity.mgt.constants.SelfRegistrationStatusCodes" %>
<%@ page import="org.wso2.carbon.identity.mgt.endpoint.util.IdentityManagementEndpointConstants" %>
Expand Down Expand Up @@ -376,7 +375,7 @@
JSONObject cookieValueInJson = new JSONObject();
cookieValueInJson.put("content", content);
String signature = Base64.getEncoder().encodeToString(SignatureUtil.doSignature(content));
String signature = Base64.getEncoder().encodeToString(IdentityUtil.doSignature(content, user.getTenantDomain()));
cookieValueInJson.put("signature", signature);
String cookieValue = Base64.getEncoder().encodeToString(cookieValueInJson.toString().getBytes());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
<%@ page import="javax.ws.rs.HttpMethod" %>
<%@ page import="org.wso2.carbon.identity.mgt.endpoint.util.client.model.User" %>
<%@ page import="org.wso2.carbon.identity.recovery.util.Utils" %>
<%@ page import="org.wso2.carbon.core.util.SignatureUtil" %>
<%@ page import="org.wso2.carbon.identity.core.util.IdentityUtil" %>
<%@ page import="javax.servlet.http.Cookie" %>
<%@ page import="java.util.Base64" %>
<%@ page import="org.wso2.carbon.identity.mgt.endpoint.util.client.PreferenceRetrievalClientException" %>
Expand Down Expand Up @@ -162,7 +162,7 @@
JSONObject cookieValueInJson = new JSONObject();
cookieValueInJson.put("content", content);
String signature = Base64.getEncoder().encodeToString(SignatureUtil.doSignature(content));
String signature = Base64.getEncoder().encodeToString(IdentityUtil.doSignature(content, user.getTenantDomain());
cookieValueInJson.put("signature", signature);
String cookieValue = Base64.getEncoder().encodeToString(cookieValueInJson.toString().getBytes());
Expand Down

0 comments on commit 084dc6a

Please sign in to comment.