Giter Club home page Giter Club logo

alphagov.verify-matching-service-adapter's Introduction

Verify Matching Service Adapter

Build Status

The Verify Matching Service Adapter (MSA) is component you can use to handle communication with the Verify hub. The MSA converts the SAML message received from the Hub into JSON data that is then passed onto a Local Matching Service and vice versa. It also handles the encryption, decryption, and signing of the SAML messages. It is a stateless Web Service that runs on Java 8 and was built using the Dropwizard framework and Gradle build tool.

How does it work?

The MSA works by receiving a SAML message containing an AttributeQuery (XML formatted message sent via SOAP) from the hub asking "do you know who this person is?", the MSA unpacks the Attributes from the XML and translates them into a "matching dataset" in JSON. The MSA then posts this JSON to a Local Matching Service which is to be built by the service team. When the MSA unpacks the SAML it validates XML signatures using x509 public certificates which are distributed through metadata.

Run (in development)

To run the matching service adapter locally, generate a local.env file either using verify-local-startup or openssl and keytool.

To run from terminal, run ./startup.sh.

To run in IntelliJ, create a run configuration with the following properties:

Main class: uk.gov.ida.matchingserviceadapter.MatchingServiceAdapterApplication
Program arguments: server configuration/verify-matching-service-adapter.yml
Use classpath of module: verify-matching-service-adapter_main

The environment variables from local.env can be added to this configuration by running env-for-intellij.sh to copy them to the clipboard before pasting them into the environment variable window in the run configuration.

Test

The MSA includes both unit and integration tests that can be run with Gradle.

./gradlew test

./gradlew intTest

Generate the artefact

The MSA is distributed as a zip file containing the generated jar and all of its dependencies.

Run the following to create the zip.

./gradlew zip

Verify Matching Service Test Tool

The MSA is distributed as a zip file which also contains the Verify Matching Service Test tool.

The test tool helps you check your matching service can:

  • handle matching datasets
  • find and match records correctly
  • handle matching failures

Support and responsible disclosure

If you think you have discovered a security issue in this code please email [email protected] with details.

For non-security related bugs and feature requests please raise an issue in the GitHub issue tracker.

License

MIT

alphagov.verify-matching-service-adapter's People

Contributors

adityapahuja avatar alan-gds avatar alexandergeegds avatar andy-paine avatar bjgill avatar charlesic avatar chrisclayson avatar dbes-gds avatar felixmarcusmillne avatar galund avatar idrop avatar j-lambo avatar j-maynard avatar jhjava avatar johnwattsgds avatar kerrr avatar kgarwood avatar krenair avatar minhngocd avatar philandstuff avatar rachaelbooth avatar rachelthecodesmith avatar richardtowers avatar sgreensmith avatar simonwo avatar skeerthana avatar timwspence avatar vixus0 avatar willp-bl avatar wynndow avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.