This tool is capable to export some json objects from pingaccess and pingfederate in a common format.
whitelist-exporter
│ jsecacerts
│ pom.xml
│ README.md
│
└─── src/main/java/at/bat/export/whitelists
│ │ Exporter.java
│ │ Main.java
│ │ RestAPIGetter.java
│ │ Utils.java
│ │
│ └─── auth
│ │ ...
│ │
│ └─── config
│ │ ...
│ │
│ └─── test
│ │ InstallCACerts.java
│ │ ...
│
└─── src/main/resources
│ │ *.json
│ │ config.properties
│ │ ...
│
└─── src/test/java/at/bat/export/whitelists
│ │ ExportIT.java
│ │ PingFederateAPIConfigurator.java
│ │ ...
│
└─── src/test/resources
│ │ *.json
│ │ test.properties
│ │ ...
Main artifacts:
- jsecacerts - java trust store used by java application at runtime
- pom.xml - maven tool configuration file used to guide the build and test processes
- Main.java - the entry point of java application
- InstallCACerts.java - this is an executable class that creates/updates the java trust store
- config.properties - the configuration file for java application
- test.properties - the configuration file for integration tests
Other artifacts:
- Exporter.java - the class that makes the export process
- RestAPIGetter.java - the class that brings the support of rest api calls
- Utils.java - adds some utilities
- src/main/resources/*.json - example json files used just as examples for api calls
- src/test/resources/*.json - json files used to configure pingfederate and pingaccess
$ cd root_of_git_repo
$ mvn clean package assembly:single
$ cd root_of_git_repo
$ java -Djavax.net.ssl.trustStore=jssecacerts -Djavax.net.ssl.trustStorePassword=changeit -jar target/whitelist-exporter-1.0-SNAPSHOT-jar-with-dependencies.jar -zone TEST
To import those self signed certificates you should:
- update InstallCACerts class with your services
- run InstallCACerts class to update the local java trust store
Integration tests are disabled by default. Firstly enable them updating the pom.xml file:
<skip.tests>false</skip.tests>
Run the build and test process:
$ cd root_of_git_repo
$ mvn clean verify
- Create or upload files
- Add files using the command line or push an existing Git repository with the following command:
cd existing_repo
git remote add origin https://git.bat.at/PingIdentity/whitelist-exporter.git
git branch -M main
git push -uf origin main
- Invite team members and collaborators
- Create a new merge request
- Automatically close issues from merge requests
- Enable merge request approvals
- Automatically merge when pipeline succeeds
Use the built-in continuous integration in GitLab.