Logo Pico-Framework A web-first embedded framework for C++
Loading...
Searching...
No Matches
JwtAuthenticator.cpp File Reference

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>
+ Include dependency graph for JwtAuthenticator.cpp:

Go to the source code of this file.

Macros

#define MBEDTLS_SHA256_DIGEST_LENGTH   32
 

Typedefs

using json = nlohmann::json
 

Detailed Description

Author
Ian Archbell

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.

Version
0.1
Date
2025-03-26
License:\n MIT License

Definition in file JwtAuthenticator.cpp.

Macro Definition Documentation

◆ MBEDTLS_SHA256_DIGEST_LENGTH

#define MBEDTLS_SHA256_DIGEST_LENGTH   32

Definition at line 35 of file JwtAuthenticator.cpp.

Typedef Documentation

◆ json

using json = nlohmann::json

Definition at line 32 of file JwtAuthenticator.cpp.