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.13.2/sampleapps/java/basic/basicdemo.war
Verify if sha256sum for the war file matches ea637d3b58037a45b9a1e786dddf45aae0ebfe0f77c175b562c0335beb12368a
shell> 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
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.13.2/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.