|
Orbit Framework 2.0.0
A high-performance asynchronous C++20 HTTP server framework.
|
The key a token is signed with. Set exactly one of secret and private_key_pem.
More...
#include <JwtAuth.hpp>
Public Attributes | |
| std::string | secret |
| std::string | private_key_pem |
| std::string | kid |
| If set, the "kid" header, so verifiers can pick the key (JWKS) | |
The key a token is signed with. Set exactly one of secret and private_key_pem.
| std::string orbit::jwt::SigningKey::kid |
If set, the "kid" header, so verifiers can pick the key (JWKS)
| std::string orbit::jwt::SigningKey::private_key_pem |
RS256 or ES256: a PEM private key ("-----BEGIN PRIVATE KEY-----"). As for verification, the key type decides the algorithm: RSA (>= 2048 bits) means RS256, EC P-256 means ES256.
| std::string orbit::jwt::SigningKey::secret |
HS256: HMAC-SHA256 key (use at least 32 random bytes)