OpenConext Metadata Exporter
- Java 8
- Maven 3
- MySQL 5.5
Connect to your local mysql database: mysql -uroot
Execute the following:
CREATE DATABASE srlocal DEFAULT CHARACTER SET latin1;
grant all on srlocal.* to 'root'@'localhost';
This project uses Spring Boot and Maven. To run locally, type:
mvn spring-boot:run
When developing, it's convenient to just execute the applications main-method, which is in Application.
The secured endpoints can be accessed at:
curl -i -H "Content-Type: application/json" --user metadata.client:secret http://localhost:8080/identity-providers.json
curl -i -H "Content-Type: application/json" --user metadata.client:secret http://localhost:8080/service-providers.json
curl -i -I -H "Content-Type: application/json" --user metadata.client:secret http://localhost:8080/identity-providers.json
curl -i -I -H "Content-Type: application/json" --user metadata.client:secret http://localhost:8080/service-providers.json
curl -i -I -H "Content-Type: application/json" -H "If-Modified-Since: Sat, 25 Feb 2017 09:14:11 GMT" --user metadata.client:secret http://localhost:8080/identity-providers.json
curl -i -I -H "Content-Type: application/json" -H "If-Modified-Since: Sat, 25 Feb 2017 09:14:11 GMT" --user metadata.client:secret http://localhost:8080/service-providers.json
For test:
curl -i -H "Content-Type: application/json" --user metadata.client:secret https://multidata.test.surfconext.nl/service-providers.json
curl -i -H "Content-Type: application/json" --user metadata.client:secret https://multidata.test.surfconext.nl/identity-providers.json