Client to automate external permission creation in WSO2 Identity Server.
-
Input data
This client requires a two columned CSV formatted input data file.
1.First value - String with display name of the permission. (Property value)
2.Second value - Unique and Numeric value for the permission id. (Collection name)
##Instrunctions
- Clone the repo and build parent pom using
mvn clean install
- Copy and extract the built artifact
org.wso2.permission.client-1.0-SNAPSHOT-bundle.zip
from the $target directory. - Do the
configurations.properties
file changes appropriately.- admin.username - Tenant admin user to authenticate the service stubs. Use the fully qualified user name with tenant domain. (Eg. [email protected])
- admin.password - password of tenant admin.
- backend.url - Host and port of the Identity Server.
- truststore - name of the client truststore file.
- truststore.password - client trust store password.
- truststore.type - Client trust store type.
- registry.parent.path - Registry path where the new permissions should be created
- permisssions.csv.file - File name of the permissions csv file described above.
- Place the
permissions.csv
file in the extracted folder. - Run the client using
java -jar ./org.wso2.permission.client-1.0-SNAPSHOT-jar-with-dependencies.jar
command. - Observe the logs in created log.out file.