Skip to content

Commit

Permalink
Stop mandate organization qualfied paths for organization resource ac…
Browse files Browse the repository at this point in the history
…cess
  • Loading branch information
sadilchamishka committed Oct 23, 2023
1 parent 80502ba commit 064ba97
Showing 1 changed file with 0 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ protected synchronized void startInternal() throws LifecycleException {
contextsToRewrite = getContextsToRewrite();
contextListToOverwriteDispatch = getContextListToOverwriteDispatchLocation();
ignorePathListForOverwriteDispatch = getIgnorePathListForOverwriteDispatch();
organizationRoutingOnlySupportedAPIPaths = getOrganizationRoutingOnlySupportedAPIPaths();
isTenantQualifiedUrlsEnabled = isTenantQualifiedUrlsEnabled();

}
Expand Down Expand Up @@ -118,20 +117,6 @@ public void invoke(Request request, Response response) throws IOException, Servl
getNext().invoke(request, response);
return;
}
if (isWebApp) {
boolean organizationRoutingOnlySupportedAPIPath = false;
for (String path : organizationRoutingOnlySupportedAPIPaths) {
if (StringUtils.contains(requestURI, path)) {
organizationRoutingOnlySupportedAPIPath = true;
break;
}
}
// Tenant context rewriting should not happen for organization routing only supported API paths.
if (organizationRoutingOnlySupportedAPIPath) {
getNext().invoke(request, response);
return;
}
}

tenantManager = ContextRewriteValveServiceComponentHolder.getInstance().getRealmService()
.getTenantManager();
Expand Down Expand Up @@ -241,11 +226,6 @@ private List<String> getIgnorePathListForOverwriteDispatch() {
return getConfigValues("TenantContextsToRewrite.OverwriteDispatch.IgnorePath");
}

private List<String> getOrganizationRoutingOnlySupportedAPIPaths() {

return getConfigValues("OrgRoutingOnlySupportedAPIPaths.Path");
}

private List<String> getConfigValues(String elementPath) {

Map<String, Object> configuration = IdentityConfigParser.getInstance().getConfiguration();
Expand Down

0 comments on commit 064ba97

Please sign in to comment.