Skip to content

Commit

Permalink
Merge branch 'wso2-extensions:main' into ft_administrator_role
Browse files Browse the repository at this point in the history
  • Loading branch information
RushanNanayakkara authored Feb 5, 2023
2 parents 8132979 + e8a4393 commit 9ee4826
Show file tree
Hide file tree
Showing 9 changed files with 24 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<parent>
<groupId>org.wso2.carbon.identity.organization.management</groupId>
<artifactId>identity-organization-management</artifactId>
<version>1.3.23-SNAPSHOT</version>
<version>1.3.24-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>

Expand Down Expand Up @@ -137,6 +137,7 @@
org.wso2.carbon.identity.application.authentication.framework.model; version="${carbon.identity.package.import.version.range}",
org.wso2.carbon.identity.application.common; version="${carbon.identity.package.import.version.range}",
org.wso2.carbon.identity.application.common.model; version="${carbon.identity.package.import.version.range}",
org.wso2.carbon.identity.application.common.model.script; version="${carbon.identity.package.import.version.range}",
org.wso2.carbon.identity.application.mgt; version="${carbon.identity.package.import.version.range}",
org.wso2.carbon.identity.application.mgt.listener; version="${carbon.identity.package.import.version.range}",
org.wso2.carbon.identity.claim.metadata.mgt; version="${carbon.identity.package.import.version.range}",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,14 @@

import org.apache.commons.lang.StringUtils;
import org.wso2.carbon.context.PrivilegedCarbonContext;
import org.wso2.carbon.identity.application.common.IdentityApplicationManagementClientException;
import org.wso2.carbon.identity.application.common.IdentityApplicationManagementException;
import org.wso2.carbon.identity.application.common.model.ClaimConfig;
import org.wso2.carbon.identity.application.common.model.ClaimMapping;
import org.wso2.carbon.identity.application.common.model.LocalAndOutboundAuthenticationConfig;
import org.wso2.carbon.identity.application.common.model.ServiceProvider;
import org.wso2.carbon.identity.application.common.model.ServiceProviderProperty;
import org.wso2.carbon.identity.application.common.model.script.AuthenticationScriptConfig;
import org.wso2.carbon.identity.application.mgt.ApplicationManagementService;
import org.wso2.carbon.identity.application.mgt.listener.AbstractApplicationMgtListener;
import org.wso2.carbon.identity.application.mgt.listener.ApplicationMgtListener;
Expand Down Expand Up @@ -92,6 +95,18 @@ public boolean doPreUpdateApplication(ServiceProvider serviceProvider, String te
.anyMatch(p -> IS_FRAGMENT_APP.equalsIgnoreCase(p.getName()) && Boolean.parseBoolean(p.getValue()))) {
serviceProvider.setSpProperties(existingApplication.getSpProperties());
serviceProvider.setInboundAuthenticationConfig(existingApplication.getInboundAuthenticationConfig());
LocalAndOutboundAuthenticationConfig localAndOutBoundAuthenticationConfig =
serviceProvider.getLocalAndOutBoundAuthenticationConfig();
if (localAndOutBoundAuthenticationConfig != null &&
localAndOutBoundAuthenticationConfig.getAuthenticationScriptConfig() != null) {
AuthenticationScriptConfig authenticationScriptConfig =
localAndOutBoundAuthenticationConfig.getAuthenticationScriptConfig();
if (authenticationScriptConfig.isEnabled() &&
!StringUtils.isBlank(authenticationScriptConfig.getContent())) {
throw new IdentityApplicationManagementClientException(
"Authentication script configuration not allowed for shared applications.");
}
}
}

// Updating the shareWithAllChildren flag of application is blocked.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<parent>
<groupId>org.wso2.carbon.identity.organization.management</groupId>
<artifactId>identity-organization-management</artifactId>
<version>1.3.23-SNAPSHOT</version>
<version>1.3.24-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<parent>
<groupId>org.wso2.carbon.identity.organization.management</groupId>
<artifactId>identity-organization-management</artifactId>
<version>1.3.23-SNAPSHOT</version>
<version>1.3.24-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<artifactId>identity-organization-management</artifactId>
<groupId>org.wso2.carbon.identity.organization.management</groupId>
<version>1.3.23-SNAPSHOT</version>
<version>1.3.24-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<parent>
<artifactId>identity-organization-management</artifactId>
<groupId>org.wso2.carbon.identity.organization.management</groupId>
<version>1.3.23-SNAPSHOT</version>
<version>1.3.24-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<parent>
<groupId>org.wso2.carbon.identity.organization.management</groupId>
<artifactId>identity-organization-management</artifactId>
<version>1.3.23-SNAPSHOT</version>
<version>1.3.24-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<parent>
<groupId>org.wso2.carbon.identity.organization.management</groupId>
<artifactId>identity-organization-management</artifactId>
<version>1.3.23-SNAPSHOT</version>
<version>1.3.24-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

<groupId>org.wso2.carbon.identity.organization.management</groupId>
<artifactId>identity-organization-management</artifactId>
<version>1.3.23-SNAPSHOT</version>
<version>1.3.24-SNAPSHOT</version>
<modelVersion>4.0.0</modelVersion>
<packaging>pom</packaging>
<name>WSO2 Carbon - Organization Management</name>
Expand Down

0 comments on commit 9ee4826

Please sign in to comment.