Implementation of JwtAuthenticator for JWT creation and validation. More...
#include "framework_config.h"
#include "DebugTrace.h"
#include "http/JwtAuthenticator.h"
#include <iostream>
#include <chrono>
#include <mbedtls/md.h>
#include <mbedtls/base64.h>
#include <mbedtls/error.h>
#include <nlohmann/json.hpp>
Go to the source code of this file.
Macros | |
#define | MBEDTLS_SHA256_DIGEST_LENGTH 32 |
Typedefs | |
using | json = nlohmann::json |
Part of the PicoFramework HTTP server. This module handles generating JSON Web Tokens (JWT) using HMAC SHA-256 for authentication purposes. It includes methods for encoding and decoding JWTs, as well as verifying their integrity and authenticity. It uses the mbedTLS library for cryptographic operations.
Definition in file JwtAuthenticator.cpp.
#define MBEDTLS_SHA256_DIGEST_LENGTH 32 |
Definition at line 35 of file JwtAuthenticator.cpp.
using json = nlohmann::json |
Definition at line 32 of file JwtAuthenticator.cpp.