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.
- Docker with Docker Compose
- OpenConext DevConf StepUp setup
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
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.
yarn
yarn encore dev
./bin/console assets:install
Copy and configure:
cp config/openconext/parameters.yaml.dist config/openconext/parameters.yaml
If everything goes as planned you can go to: