Skip to content

fpotera/ping-api-export

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Whitelist exporter

This tool is capable to export some json objects from pingaccess and pingfederate in a common format.

Project structure

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

How to build executable jar

$ cd root_of_git_repo
$ mvn clean package assembly:single

How to run executable jar

$ 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

How to import self signed certicates in java trust store

To import those self signed certificates you should:

  • update InstallCACerts class with your services
  • run InstallCACerts class to update the local java trust store

How to run integration tests

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

Add your files

cd existing_repo
git remote add origin https://git.bat.at/PingIdentity/whitelist-exporter.git
git branch -M main
git push -uf origin main

Collaborate with your team

Test and Deploy

Use the built-in continuous integration in GitLab.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published