#include <userver/crypto/jwt.hpp>
Claim checks performed by crypto::jwt::Verify after signature verification.
Definition at line 61 of file jwt.hpp.
|
| std::optional< std::string > | issuer {} |
| | Expected iss. When set, the claim must be present and match exactly.
|
| std::unordered_set< std::string > | audiences {} |
| std::optional< std::string > | subject {} |
| | Expected sub. When set, the claim must be present and match exactly.
|
| std::optional< std::string > | type {} |
| | Expected token media type (typ). Compares the name case-insensitively and ignores parameters.
|
| std::chrono::seconds | leeway {0} |
| | Nonnegative clock skew allowance for exp, nbf, and iat.
|
| ExpirationPolicy | expiration {ExpirationPolicy::kRequired} |
| | Expiration is required by default for authorization tokens.
|
◆ audiences
| std::unordered_set<std::string> crypto::jwt::VerificationOptions::audiences {} |
Accepted audiences. A present aud must match at least one entry. An empty set accepts only tokens without aud; a nonempty set requires aud.
Definition at line 66 of file jwt.hpp.
◆ expiration
Expiration is required by default for authorization tokens.
Definition at line 74 of file jwt.hpp.
◆ issuer
| std::optional<std::string> crypto::jwt::VerificationOptions::issuer {} |
Expected iss. When set, the claim must be present and match exactly.
Definition at line 63 of file jwt.hpp.
◆ leeway
| std::chrono::seconds crypto::jwt::VerificationOptions::leeway {0} |
Nonnegative clock skew allowance for exp, nbf, and iat.
Definition at line 72 of file jwt.hpp.
◆ subject
| std::optional<std::string> crypto::jwt::VerificationOptions::subject {} |
Expected sub. When set, the claim must be present and match exactly.
Definition at line 68 of file jwt.hpp.
◆ type
| std::optional<std::string> crypto::jwt::VerificationOptions::type {} |
Expected token media type (typ). Compares the name case-insensitively and ignores parameters.
Definition at line 70 of file jwt.hpp.
The documentation for this struct was generated from the following file: