By default SCIM feature is not available in APIM. You could enable the SCIM feature using the pom.xml based approach. Please find the steps below to enable SCIM feature in APIM 2.1.0 using pom.xml based approach.
- Downloaded the p2 repo from [1] (WSO2 Carbon 4.4.x (Wilkes))
- Download the wso2am-2.1.0.zip from [2].
- Unzip wso2am-2.1.0.zip and p2-repo.zip into the same directory.
- Create a pom.xml file including below configuration and copy into the same directory.
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.wso2.sample</groupId>
<artifactId>sample-feature-installation</artifactId>
<version>1.0.0</version>
<packaging>pom</packaging>
<name>New feature</name>
<url>http://wso2.org</url>
<build>
<plugins> <plugin>
<groupId>org.wso2.maven</groupId>
<artifactId>carbon-p2-plugin</artifactId>
<version>1.5.4</version>
<executions><
<execution>
<id>feature-install</id>
<phase>package</phase>
<goals>
<goal>p2-profile-gen</goal>
</goals>
<configuration>
<profile>default</profile>
<metadataRepository>file:p2-repo</metadataRepository>
<artifactRepository>file:p2-repo</artifactRepository>
<destination>wso2am-2.1.0/repository/components</destination>
<deleteOldProfileFiles>false</deleteOldProfileFiles>
<features>
<feature>
<id>org.wso2.carbon.identity.scim.feature.group</id>
<version>5.2.0</version>
</feature>
<feature>
<id>org.wso2.carbon.identity.provisioning.server.feature.group</id>
<version>5.7.5</version>
</feature>
</features>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.1</version>
<executions>
<execution>
<phase>package</phase>
<configuration>
<tasks>
<replace token="false" value="true" dir="wso2am-2.1.0/repository/components/default/configuration/org.eclipse.equinox.simpleconfigurator">
<include name="**/bundles.info"/>
</replace>
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<repositories>
<repository>
<id>wso2-nexus</id>
<name>WSO2 internal Repository</name>
<url>http://maven.wso2.org/nexus/content/groups/wso2-public/</url>
<releases>
<enabled>true</enabled>
<updatePolicy>daily</updatePolicy>
<checksumPolicy>ignore</checksumPolicy>
</releases>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>wso2-maven-releases-repository</id>
<url>http://maven.wso2.org/nexus/content/repositories/releases/</url>
</pluginRepository>
<pluginRepository>
<id>wso2-maven-snapshots-repository</id>
<url>http://maven.wso2.org/nexus/content/repositories/snapshots/</url>
</pluginRepository>
</pluginRepositories>
</project>
- Enable SCIM for the primary user store from user-mgt.xml file as follows
<Property name="SCIMEnabled">true</Property>
No comments:
Post a Comment