Skip to content

Commit

Permalink
components/authentication-framework/org.wso2.carbon.identity.applicat…
Browse files Browse the repository at this point in the history
…ion.authentication.framework/src/main/java/org/wso2/carbon/identity/application/authentication/framework/handler/request/impl/DefaultRequestCoordinator.java
  • Loading branch information
madurangasiriwardena committed Feb 3, 2024
1 parent 6d269ca commit 6063a83
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1021,10 +1021,12 @@ private void buildOutboundQueryString(HttpServletRequest request, Authentication
.append("&relyingParty=").append(URLEncoder.encode(context.getRelyingParty(), "UTF-8"))
.append("&type=").append(context.getRequestType()).append("&")
.append(FrameworkConstants.REQUEST_PARAM_SP).append("=")
.append(URLEncoder.encode(context.getServiceProviderName(), "UTF-8")).append("&")
.append(FrameworkConstants.REQUEST_PARAM_SP_UUID).append("=")
.append(URLEncoder.encode(context.getServiceProviderResourceId())).append("&")
.append("&isSaaSApp=")
.append(URLEncoder.encode(context.getServiceProviderName(), "UTF-8")).append("&");
if (context.getServiceProviderResourceId() != null) {
outboundQueryStringBuilder.append(FrameworkConstants.REQUEST_PARAM_SP_UUID).append("=")
.append(URLEncoder.encode(context.getServiceProviderResourceId(), "UTF-8")).append("&");
}
outboundQueryStringBuilder.append("&isSaaSApp=")
.append(context.getSequenceConfig().getApplicationConfig().isSaaSApp());
} catch (UnsupportedEncodingException e) {
throw new FrameworkException("Error while URL Encoding", e);
Expand Down

0 comments on commit 6063a83

Please sign in to comment.