Skip to content

Commit

Permalink
Inherit APIBasedAuthenticationEnabled property from parent applicatio…
Browse files Browse the repository at this point in the history
…n to the shared application
  • Loading branch information
HasiniSama committed Oct 29, 2024
1 parent 2333d0d commit 6f10ef5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -902,6 +902,8 @@ private ServiceProvider prepareSharedApplication(ServiceProvider mainApplication
delegatedApplication.setApplicationName(oAuthConsumerApp.getApplicationName());
delegatedApplication.setDescription(mainApplication.getDescription());
delegatedApplication.setInboundAuthenticationConfig(inboundAuthConfig);
delegatedApplication.setAPIBasedAuthenticationEnabled(mainApplication.isAPIBasedAuthenticationEnabled());

Check warning on line 905 in components/org.wso2.carbon.identity.organization.management.application/src/main/java/org/wso2/carbon/identity/organization/management/application/OrgApplicationManagerImpl.java

View check run for this annotation

Codecov / codecov/patch

components/org.wso2.carbon.identity.organization.management.application/src/main/java/org/wso2/carbon/identity/organization/management/application/OrgApplicationManagerImpl.java#L905

Added line #L905 was not covered by tests

if (ApplicationMgtUtil.isConsole(mainApplication.getApplicationName())) {
delegatedApplication.setAccessUrl(resolveAccessURL(mainApplication.getTenantDomain(), sharedOrgId,
FrameworkConstants.Application.CONSOLE_APP_PATH));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,7 @@ private void inheritAPIBasedAuthenticationEnabledProperty(ServiceProvider mainAp
}
}
sharedApplication.setSpProperties(properties);
sharedApplication.setAPIBasedAuthenticationEnabled(mainApplication.isAPIBasedAuthenticationEnabled());

Check warning on line 363 in components/org.wso2.carbon.identity.organization.management.application/src/main/java/org/wso2/carbon/identity/organization/management/application/listener/FragmentApplicationMgtListener.java

View check run for this annotation

Codecov / codecov/patch

components/org.wso2.carbon.identity.organization.management.application/src/main/java/org/wso2/carbon/identity/organization/management/application/listener/FragmentApplicationMgtListener.java#L363

Added line #L363 was not covered by tests
}
}

Expand Down

0 comments on commit 6f10ef5

Please sign in to comment.