|
PACS System 0.1.0
PACS DICOM system library
|
Namespaces | |
| namespace | dicomweb_scopes |
| Standard OAuth 2.0 scopes for DICOMweb operations. | |
Classes | |
| struct | auth_result |
| Result of a successful OAuth 2.0 authentication. More... | |
| struct | jwk_key |
| Represents a single JSON Web Key converted to PEM format. More... | |
| class | jwks_provider |
| struct | jwt_claims |
| Decoded JWT claims (payload) More... | |
| struct | jwt_header |
| Decoded JWT header (JOSE header) More... | |
| struct | jwt_token |
| Decoded JWT token with raw segments for signature verification. More... | |
| class | jwt_validator |
| struct | oauth2_config |
| OAuth 2.0 configuration for DICOMweb authorization. More... | |
| class | oauth2_middleware |
Typedefs | |
| using | jwks_fetch_callback |
| Callback type for fetching JWKS JSON from a URL. | |
Enumerations | |
| enum class | jwt_error { none , malformed_token , invalid_base64 , invalid_json , unsupported_algorithm , invalid_signature , token_expired , token_not_yet_valid , invalid_issuer , invalid_audience , missing_required_claim , signature_not_available } |
| JWT validation error codes. More... | |
Functions | |
| std::string_view | jwt_error_message (jwt_error error) noexcept |
| Get human-readable description for a JWT error. | |
| std::optional< std::string > | base64url_decode (std::string_view input) |
| Decode a Base64url-encoded string (RFC 4648 Section 5) | |
Callback type for fetching JWKS JSON from a URL.
The callback receives a URL string and should return the JWKS JSON response body, or std::nullopt on failure.
Definition at line 48 of file jwks_provider.h.
|
strong |
JWT validation error codes.
Definition at line 75 of file jwt_validator.h.
|
nodiscard |
Decode a Base64url-encoded string (RFC 4648 Section 5)
| input | Base64url string (no padding required) |
Definition at line 108 of file jwt_validator.cpp.
Referenced by kcenon::pacs::web::auth::jwt_validator::decode().

|
nodiscardnoexcept |
Get human-readable description for a JWT error.
| error | The error code |
Definition at line 144 of file jwt_validator.cpp.
References invalid_audience, invalid_base64, invalid_issuer, invalid_json, invalid_signature, malformed_token, missing_required_claim, none, signature_not_available, token_expired, token_not_yet_valid, and unsupported_algorithm.
Referenced by kcenon::pacs::web::auth::oauth2_middleware::authenticate().
