Skip to content

Commit

Permalink
Handle appending proxy port for CIBA web auth links
Browse files Browse the repository at this point in the history
  • Loading branch information
hasithakn committed Feb 7, 2025
1 parent c07baf4 commit 2e06e31
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
import com.wso2.openbanking.accelerator.common.config.OpenBankingConfigParser;
import com.wso2.openbanking.accelerator.common.constant.OpenBankingConstants;
import com.wso2.openbanking.accelerator.common.exception.ConsentManagementException;
import com.wso2.openbanking.accelerator.common.util.CarbonUtils;
import com.wso2.openbanking.accelerator.consent.extensions.internal.ConsentExtensionsDataHolder;
import com.wso2.openbanking.accelerator.consent.mgt.dao.models.AuthorizationResource;
import com.wso2.openbanking.accelerator.consent.mgt.service.ConsentCoreService;
Expand All @@ -22,6 +21,7 @@
import org.wso2.carbon.identity.application.authentication.framework.context.AuthenticationContext;
import org.wso2.carbon.identity.application.authentication.framework.exception.AuthenticationFailedException;
import org.wso2.carbon.identity.application.authentication.framework.model.AuthenticatedUser;
import org.wso2.carbon.identity.core.util.IdentityUtil;

import java.text.ParseException;
import java.util.Arrays;
Expand Down Expand Up @@ -84,7 +84,7 @@ public String generateWebAuthLink(AuthenticationContext context, AuthenticatedUs
paramList.add("login_hint=" + user.getUserName());

StringBuilder builder = new StringBuilder();
builder.append(CarbonUtils.getCarbonServerUrl()).append(CIBAWebLinkAuthenticatorConstants.AUTHORIZE_URL_PATH);
builder.append(IdentityUtil.getServerURL(CIBAWebLinkAuthenticatorConstants.AUTHORIZE_URL_PATH, false, true));
for (String param : paramList) {
builder.append(param).append("&");
}
Expand Down

0 comments on commit 2e06e31

Please sign in to comment.