Skip to content

Commit

Permalink
Merge pull request #390 from asha15/sharedApp
Browse files Browse the repository at this point in the history
Inherit discoverable property to the shared apps
  • Loading branch information
asha15 authored Sep 18, 2024
2 parents 3848f2a + 4c67494 commit 6733639
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,7 @@ public boolean doPostGetServiceProvider(ServiceProvider serviceProvider, String
inheritAPIBasedAuthenticationEnabledProperty(mainApplication, serviceProvider);
// Inherit Application enabled property from the main application.
inheritApplicationEnabledProperty(mainApplication, serviceProvider);
inheritDiscoverabilityProperty(mainApplication, serviceProvider);

/*
If the shared application doesn't have a configured access URL,
Expand All @@ -317,6 +318,11 @@ public boolean doPostGetServiceProvider(ServiceProvider serviceProvider, String
return super.doPostGetServiceProvider(serviceProvider, applicationName, tenantDomain);
}

private void inheritDiscoverabilityProperty(ServiceProvider mainApplication, ServiceProvider sharedApplication) {

sharedApplication.setDiscoverable(mainApplication.isDiscoverable() || sharedApplication.isDiscoverable());
}

private void inheritAPIBasedAuthenticationEnabledProperty(ServiceProvider mainApplication,
ServiceProvider sharedApplication) {

Expand Down

0 comments on commit 6733639

Please sign in to comment.