Skip to content
This repository was archived by the owner on Oct 11, 2018. It is now read-only.
feideconnectPublic archive

About

SAML 2.0 Metadata Import scripts that stores metadata to a Cassandra backend

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

68 Commits

Folders and files

Repository files navigation

metadata-import

This repository holds the job that fetches SAML 2.0 metadata from international federations. The only job of the repository is to fetch, parse & validate the metadata, and then store it to a Cassandra store. Other jobs that needs access to the metadata can then read it from that repository.

Requirements and dependencies

Running with simplesamlphp and SAML2 lib dev-master because of need of the RegistrationInfo support in SAMLParser.php.

Configuration: Environment variables

CASSANDRA_KEYSPACE=metadata
CASSANDRA_NODE=cassandra

Development / testing

This section goes through the steps for running this script in a development environment.

Run cassandra

docker pull cassandra:2.2
docker run --name cassameta -d cassandra:2.2
# docker exec -ti cassameta sh -c 'exec cqlsh "$CASSANDRA_PORT_9042_TCP_ADDR"'
docker exec -ti cassameta sh -c 'exec cqlsh'
docker exec -i cassameta sh -c 'exec cqlsh' < etc/init.cql

Run locally

First setup and run Cassandra (as described above), then build and run the script like this:

bin/build.sh
bin/rundev.sh

To run the test.php script for development

The rundev.sh opens a bash shell in the container. Run:

clear; ./test.php

rundev.sh also mounts the lib directory and the scripts. It means you can develop locally and re-test immediately.

To speed up processing, fetch a local cached XML:

curl -o /metadata-import/temp.xml http://mds.edugain.org

About

SAML 2.0 Metadata Import scripts that stores metadata to a Cassandra backend

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages