Skip to content
This repository has been archived by the owner on Sep 28, 2022. It is now read-only.

App for synchronizing SPReg OIDC clients from Perun to MitreID

License

Notifications You must be signed in to change notification settings

CESNET/spreg_oidc_metadata_sync

Repository files navigation

SPReg (Perun) -> MitreID sync

REPOSITORY HAS BEEN MOVED TO: https://gitlab.ics.muni.cz/perun-proxy-aai/java/spreg_oidc_metadata_sync

Checkstyle

Maven build

Command-line tool for synchronization of data stored about the clients in Perun to MitreID. Serves as one-shot synchronization. To run it periodically, we advise to create a cron job.

Contribution

This repository uses Conventional Commits. Any change that significantly changes behavior in a backward-incompatible way or requires a configuration change must be marked as BREAKING CHANGE.

Available scopes:

  • script

Configuration

See example configuration.

Running

First, package the application. If you have already downloaded the compiled JAR file, skip to the next step.

./mvnw clean package -Dfinal.name=oidc-sync-v1

Arguments:

  • final.name: name of the built jar

Run the JAR with options to specify config file location and name (name defaults to application.yml)

java -jar PATH/TO/RUNNABLE/JAR/FILE.jar --spring.config.location=/PATH/TO/DIR/WITH/CONFIG/
 --spring.config.name=FILE_NAME_WITHOUT_EXTENSION --mode=to_perun --interactive=true

Arguments:

  • MODE: specifies the destination to which the sync will be performed
    • to_perun
    • to_oidc
  • INTERACTIVE: if set to TRUE, each action has to be confirmed by the user
    • true
    • false