search and ai stabilization work, localization stablized.
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
using Microsoft.IdentityModel.Tokens;
|
||||
using System.Text.Json;
|
||||
using static StellaOps.Localization.T;
|
||||
|
||||
namespace StellaOps.Auth.Security.Dpop;
|
||||
|
||||
@@ -27,13 +28,13 @@ public sealed partial class DpopProofValidator
|
||||
var segments = token.Split('.');
|
||||
if (segments.Length != 3)
|
||||
{
|
||||
error = "Token must contain three segments.";
|
||||
error = _t("auth.dpop.token_three_segments");
|
||||
return false;
|
||||
}
|
||||
|
||||
if (segmentIndex < 0 || segmentIndex > 2)
|
||||
{
|
||||
error = "Segment index out of range.";
|
||||
error = _t("auth.dpop.segment_out_of_range");
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user