Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 2 additions & 8 deletions plugins/experimental/uri_signing/jwt.c
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,6 @@ unsupported_string_claim(const char *str)
return !str;
}

bool
unsupported_date_claim(double t)
{
return isnan(t);
}

bool
jwt_validate(struct jwt *jwt)
{
Expand All @@ -126,8 +120,8 @@ jwt_validate(struct jwt *jwt)
return false;
}

if (!unsupported_date_claim(jwt->nbf)) {
PluginDebug("Initial JWT Failure: nbf unsupported");
if (now() < jwt->nbf) {
PluginDebug("Initial JWT Failure: nbf claim violated");
return false;
}

Expand Down