README
1pam-u2f can be tested as follows:
2
31. Build a Docker image containing everything needed to run pam-u2f.
4 This can be achieved through the command:
5
6 $ docker build -t pam-u2f-test -f tests/bionic/Dockerfile .
7
82. Connect a YubiKey to the host OS and take note of the path of the
9 device's U2F endpoint (e.g. /dev/hidraw6).
103. Execute tests/bionic/run.sh in a container, exposing the YubiKey
11 to the guest OS. This can be done through the command:
12
13 $ docker run -it --rm=true --device=/dev/hidraw6 \
14 pam-u2f-test /pam-u2f/tests/bionic/run.sh
15
16 To test U2F devices, pass -e U2F_TOKEN=1 to docker-run. To test
17 FIDO2 devices configured with a PIN, pass -e FIDO2_PIN=1 to
18 docker-run.
19