Once you have configured your cloud tenant, you can build and set up the Tutorial app so you can test passkey creation, sign-in, and completing a transaction.
Prerequisites
Before building the Tutorial App for web, please ensure that your development environment includes the following components. You can click through each link to verify if the component is configured correctly:
Supported versions: 17, 21, 25 | |
Eclipse IDE for Enterprise Java and Web Developers | |
| |
WebAuthn-compliant browsers |
|
See Set up your web development environment for the complete setup instructions.
Build the Tutorial App for web
Import the SDK files
Launch Eclipse and open the workspace you will be using to build the tutorial app.
Go to File > Import.1
In the Import wizard, choose Existing Projects into Workspace under General. Click Next.
In the Import Projects dialog, choose Select root directory and Browse for the folder where you extracted the zip file after downloading the App SDK for web.
Any projects detected will be displayed in the Projects pane.
If TutorialWebApp (or a similarly named project) is visible, check it.
Leave Copy projects into workspace unchecked.
Click Finish.
Before you proceed, confirm that the project appears correctly in the Project/Package Explorer.2
Go to src > com > noknok > tutorial and open JWTExternalAuthServlet.java.
Update the following constants:
Set TENANT to your tenant name3
Set KEY to the JWT signing key4
Set ISSUER to the JWT issuer5
Export the WAR file.
Right-click on your web project folder in the explorer and select Export from the pop-up menu.
Select WAR file in the Export window and click Next.
Select the project you wish to export and specify where the new file should be saved.
Click Finish.
1 Do not use File > Open Projects from File System(...) or File > New > Project(...) as the existing project metadata will not be recognized and the project structure may be duplicated or broken.
2 In case of errors, check if:
The correct Java/Server runtime is correctly configured for the project in Project > Properties > Java Build Path.
No required libraries are missing in Project > Properties > Java Build Path > Libraries.
3 Your tenant name appears in the portal header.
Deploy the Tutorial App for web
Open the directory containing the WAR file.
Once you have verified that the values for TENANT, KEY and ISSUER are correct, you are ready to deploy the tutorial web app.
Use the command-line interface to copy gwtutorial.war to the Tomcat home directory.
Unix/Linux:
cp gwtutorial.war {{TOMCAT_HOME}}/webapps/Windows:
Copy-Item gwtutorial.war {{TOMCAT_HOME}}\webapps\
Start Tomcat.
Configure the Tutorial App for web
Open a browser and navigate to http://localhost:8080/gwtutorial/configure.
You will see the Web App Configuration dialog.

First, make sure that Deployment is set to cloud.
Next, fill in the following fields:
Tenant: [your tenant name]
Server Host: https://staging.digipassone.com
Click Apply Configuration.
The configuration is stored in the browser. If you test the tutorial web app on a different browser or close the current one, the settings will be lost.
Test the Tutorial App for web
Using the same browser, access the web tutorial app at http://localhost:8080/gwtutorial.
Feel free to enter any Username in the field provided, but make sure to enter "noknok" as the Password.
Follow the instructions for registering a passkey.
Log out and test your new passkey by:
Logging in
Completing a transaction
Once you have completed testing, delete the authentication method and verify that the passkey is no longer available.
Please contact digipassone-trial@onespan.com if you are unable to complete these steps.