PACS System 0.1.0
PACS DICOM system library
Loading...
Searching...
No Matches
jwt_validator.cpp File Reference

Implementation of JWT token validation. More...

#include "kcenon/pacs/web/auth/jwt_validator.h"
#include <algorithm>
#include <array>
#include <set>
#include <chrono>
#include <cstddef>
#include <cstdint>
#include <cstring>
#include <string>
#include <crow/json.h>
Include dependency graph for jwt_validator.cpp:

Go to the source code of this file.

Namespaces

namespace  kcenon
 
namespace  kcenon::pacs
 
namespace  kcenon::pacs::web
 
namespace  kcenon::pacs::web::auth
 

Functions

std::optional< std::string > kcenon::pacs::web::auth::base64url_decode (std::string_view input)
 Decode a Base64url-encoded string (RFC 4648 Section 5)
 
std::string_view kcenon::pacs::web::auth::jwt_error_message (jwt_error error) noexcept
 Get human-readable description for a JWT error.
 

Detailed Description

Implementation of JWT token validation.

See also
RFC 7519 - JSON Web Token (JWT)
Issue #860 - Add OAuth 2.0 configuration and JWT token validation core

Definition in file jwt_validator.cpp.