This version of the CPP-JWT library is adapted for KasperskyOS.
JSON Web Token (JWT) library creates access tokens that allow users to access resources. A server provides these tokens to clients for authentication. Typically, a user enters a user name and a password to receive the token.
For more information about the original CPP-JWT library, please refer to README.md.
Please refer to the following helpful resources for more information about:
- the original CPP-JWT library—README.md
- using JWT—Anatomy of JWT, Learn JWT and RFC 7519
- KasperskyOS—KasperskyOS Community Edition Online Help.
Limitations and known issues are described in the KasperskyOS Community Edition Online Help.
- Install KasperskyOS Community Edition SDK. You can download the latest version of the KasperskyOS Community Edition for free from os.kaspersky.com. The minimum required version of the KasperskyOS Community Edition SDK is 1.2. For more information, see System requirements.
- Copy source files to your project directory. The example of KasperskyOS-based solution and tests
are located in the
./kos
directory.
When you develop a KasperskyOS-based solution, use the recommended structure of project directories to simplify usage of CMake scripts.
To include the JWT library in your KasperskyOS-based solution, add a directory with header files using
the CMake command include_directories
. For example:
set (JWT_ROOT_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../..)
include_directories (${JWT_ROOT_DIR}/include)
The project example demonstrates how to use of the adapted JWT library in a KasperskyOS-based
solution. You can review the example in the ./kos/example
directory.
./kos/unittests
—Unit testing using the GoogleTest framework.
Registered trademarks and endpoint marks are the property of their respective owners.
GoogleTest is a trademark of Google LLC.
Raspberry Pi is a trademark of the Raspberry Pi Foundation.
Only KasperskyOS-specific changes can be approved. See CONTRIBUTING.md for detailed instructions on code contribution.
This project is licensed under the terms of the MIT license. See LICENSE for more information.
© 2024 AO Kaspersky Lab