SDK component versions
The SDK contains the following components:
- uaf-core-ext 6.0.1
- fido-sample-webapp 5.0.3
Product package contents
The structure of the product package ZIP file is as follows:
library: This directory contains the SDK files:
bin: This directory contains the binary files.
- uaf-core-ext-6.0.1.jar: Contains the FIDO UAF SDK implementation files without the required third-party dependencies.
- uaf-core-ext-6.0.1.pom: Contains the list of third-party dependencies together with their associated versions, which are needed by the FIDO UAF SDK implementation.
- doc: Contains the ZIP file that holds the SDK Java code documentation.
- db-schema.sql: Contains an example database schema generated for MariaDB that can be used to store FIDO-related data in a persistent relational database.
sample: This directory contains an example application that uses the OneSpan FIDO UAF SDK. It exposes REST endpoints and a simple front end to demonstrate FIDO UAF usage scenarios. The sample directory contains the following sub-directories:
- bin: Contains the application WAR archive (fido-sample-webapp-5.0.3.war), which can be deployed to the web server.
- src: Contains the sample web application source code.
Adding the OneSpan FIDO UAF SDK to your project
The uaf-core-ext-6.0.1.jar is a thin Java archive file (JAR) that contains the FIDO UAF SDK implementation. It does not contain the required third-party dependencies. The SDK includes a Project Object Model (POM) file that declares all the required third-party dependencies and their associated versions.
The POM file can be found in the binary folder of the extracted package, i.e., sdk\uaf11\library\bin\uaf-core-ext-6.0.1.pom.
To integrate the SDK library into your project
Create the following repository folder structure in your project root folder:
project_folder\repository\com\onespan\fido\uaf11\uaf-core-ext\6.0.1
Replace project_folder with the top folder of your project.
- Copy uaf-core-ext-6.0.1.jar and uaf-core-ext-6.0.1.pom to the new repository folder.
Adapt your build.gradle file to enable the import from the new repository folder:
repositories { maven { url "${projectDir}/repository" } mavenCentral() }To import the OneSpan FIDO UAF SDK implementation, update the dependency section:
dependencies { implementation 'com.onespan.fido.uaf11:uaf-core-ext:6.0.1' }