Important
The project was moved to KasperskyLab/kos-ce-extra repository: jwt example.
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 version 1.3. You can download it for free from os.kaspersky.com. For more information, see System requirements.
- Clone the JWT for KasperskyOS repository to your project directory (to reduce cloning time you can use
--depth 1option):$ git clone --recurse-submodules --shallow-submodules https://github.com/KasperskyLab/jwt-kos.git
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.
Visual Studio is a trademark of the Microsoft group of companies.
OpenSSL is a trademark owned by the OpenSSL Software Foundation.
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.
© 2025 AO Kaspersky Lab