Skip to content

Commit

Permalink
Fix tenantDomain parm issue when T is capital in para
Browse files Browse the repository at this point in the history
The issue occurs in the JIT provisioning when we choose
the option 'Prompt for username, password, and consent.'
In the URL build of the JIT provisioning flow, it
constructs the URL by adding the capital 'TenantDomain' parameterm
  • Loading branch information
chashikajw committed Jan 4, 2024
1 parent 4ad8723 commit 8afe31d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion modules/distribution/product/src/main/extensions/header.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@

<%
String tenant = request.getParameter("tenantDomain");
if (tenant == null) {
tenant = request.getParameter("TenantDomain");
}
if (tenant == null) {
String cb = request.getParameter("callback");
cb = StringUtils.replace(cb, " ", "");
Expand All @@ -39,7 +42,7 @@
String decodedValue = uri.getQuery();
String[] params = decodedValue.split("&");
for (String param : params) {
if (param.startsWith("tenantDomain=")) {
if (param.startsWith("tenantDomain=") || param.startsWith("TenantDomain=")) {
String[] keyVal = param.split("=");
tenant = keyVal[1];
}
Expand Down

0 comments on commit 8afe31d

Please sign in to comment.