This project is a basic service provider web application written in Java to work with StrongKey FIDO Server (SKFS), Community Edition. This project also includes sample JavaScript files providing a basic user interface to test FIDO2 registration and authentication.
Switch to (or login as) the strongkey user. The default password for the strongkey user is ShaZam123.
su - strongkey
Create the following directories to configure the WebAuthn servlet home folder.
mkdir -p /usr/local/strongkey/webauthntutorial/etc
Create a configuration file for the service provider web application to configure a FIDO2 Server.
echo "webauthntutorial.cfg.property.apiuri=https://$(hostname):8181" > /usr/local/strongkey/webauthntutorial/etc/webauthntutorial-configuration.properties
Download the service provider web application .war file basicdemo.war.
wget https://sourceforge.net/projects/strongkeyfido/files/v4.17.0/sampleapps/java/basic/basicdemo.war
Verify if sha256sum for the war file matches 5f0a78e1211a3689d00cc3f66b321725f96d18d7b9b7713f5c26783dd7db87a6
sha256sum basicdemo.war
Add the .war file to Payara.
asadmin deploy basicdemo.war
Test that the servlet is running by executing the following cURL command and confirming that the API Web Application Definition Language (WADL) file is returned in response.
The application is deployed and can be accessed as follows in a browser:
https://<FQDN-of-Policy-server>:8181/basicdemo
The LDAP service credentials used by the web application may be changed by setting the following configurations in the configuration file found at: /usr/local/strongkey/webauthntutorial/etc/webauthntutorial-configuration.properties
webauthntutorial.cfg.property.fido2.service.defaultuser=<non-default FIDO service username> webauthntutorial.cfg.property.fido2.service.defaultpassword=<non-default FIDO service password>
NOTE: When making changes to any configuration files, the Payara server must be restarted for any changes to take effect. This can be done by running the following as the strongkey user:
sudo systemctl restart payara
This project is a basic service provider web application written in Java to work with StrongKey's FIDO2 Server, Community Edition. This project also includes sample JavaScript files providing a basic user interface to test FIDO2 registration and authentication.
Switch to (or login as) the strongkey user. The default password for the strongkey user is ShaZam123.
su - strongkey
Change the name of the configuration file.
mv /usr/local/strongkey/webauthntutorial/etc/webauthntutorial.properties /usr/local/strongkey/webauthntutorial/etc/webauthntutorial-configuration.properties
Open any text editor (Ex: vi) to edit the configuration file and update the "webauthntutorial.cfg.property.apiuri" property. (the /api is being removed at the end of the URL)
webauthntutorial.cfg.property.apiuri=https://$(hostname):8181
Download theservice provider web application .war file basicdemo.war.
wget https://sourceforge.net/projects/strongkeyfido/files/v4.17.0/sampleapps/java/basic/basicdemo.war
Undeploy the old version and deploy the new .war file to Payara.
asadmin undeploy basicserver
asadmin deploy basicdemo.war
Test that the servlet is running by executing the following cURL command and confirming that the API Web Application Definition Language (WADL) file is returned in response.
curl -k https://<FQDN-of-Policy-server>:8181/basicdemo/fido2/application.wadl
The application is deployed and can be accessed as follows in a browser:
https://<FQDN-of-Policy-server>:8181/basicdemo
To uninstall the service provider sample web application, follow the uninstall instructions here. Removing SKFS also removes the sample service provider web application and sample WebAuthn client.
If you would like to contribute to the sample service provider web application project, please read CONTRIBUTING.md, then sign and submit the Contributor License Agreement (CLA).
This project is currently licensed under the GNU Lesser General Public License v2.1.