Skip to content

Latest commit

 

History

History
60 lines (35 loc) · 2.03 KB

development.md

File metadata and controls

60 lines (35 loc) · 2.03 KB

Development environment

The purpose of the development environment is only for running the different test and metric tools.

To get started, first setup the development environment. The development 'env' is a virtual machine. Every task described is run from that machine.

Requirements

  • Docker with Docker Compose
  • OpenConext DevConf StepUp setup

Install

1. Start OpenConext DevConf with WebAuthn in development mode

cd /path/to/your/OpenConext-devconf/stepup

./start-dev-env.sh webauthn:/path/to/your/Stepup-Webauthn

If everything goes as planned you can develop inside the virtual machine

docker exec -it stepup-webauthn-1 bash

2. Prepare the MetadataStatementService

We use the Fido JWS MDS Blob file to verify if Webauthn tokens are trustworthy. Here we follow the principle. If a token is verified by Fido and has at least a level 1 score. The token is good enough for us.

2 files need to be present in the config/openconext/mds folder. They are:

config/openconext/mds/blob.jwt config/openconext/mds/fido2-mds.cer

The blob containing the registry of metadata statements can be found here: https://fidoalliance.org/metadata/ (see the Obtaining blob section)

The Blob file is signed by the FIDO Alliance. To verify the signature we need the appropriate certificate. This certificate is not downloaded on demand, but we also track it. This is the location the cert can be found on the fido page linked in the paragraph above. Also in the Obtaining blob section.

The provided dist files should result in a working application. But might not work with brand-new tokens.

3. Build frontend assets:

yarn

yarn encore dev

./bin/console assets:install

4. Create configuration files

Copy and configure:

cp config/openconext/parameters.yaml.dist config/openconext/parameters.yaml

If everything goes as planned you can go to:

https://webauthn.dev.openconext.local