batch37 task7 port wave T1 mapped tests and verify statuses
This commit is contained in:
@@ -125,10 +125,17 @@ public static class JwtProcessor
|
||||
var start = today + startTime;
|
||||
var end = today + endTime;
|
||||
|
||||
// If start > end, end is on the next day (overnight range).
|
||||
// If start > end, this range crosses midnight.
|
||||
if (startTime > endTime)
|
||||
{
|
||||
end = end.AddDays(1);
|
||||
if (now.TimeOfDay < endTime)
|
||||
{
|
||||
start = start.AddDays(-1);
|
||||
}
|
||||
else
|
||||
{
|
||||
end = end.AddDays(1);
|
||||
}
|
||||
}
|
||||
|
||||
if (start <= now && now < end)
|
||||
@@ -225,12 +232,12 @@ public static class JwtProcessor
|
||||
public static Exception? ValidateTrustedOperators(ServerOptions opts)
|
||||
{
|
||||
if (opts.TrustedOperators == null || opts.TrustedOperators.Count == 0)
|
||||
return null;
|
||||
return (Exception?)null;
|
||||
|
||||
// Full trusted operator JWT validation requires a NATS JWT library.
|
||||
// Each operator JWT should be decoded and its signing key chain verified.
|
||||
// For now, we accept any non-empty operator list and validate at connect time.
|
||||
return null;
|
||||
return (Exception?)null;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user