refactor(TokenDescriptor): ApiRoute-Eigenschaft entfernt

This commit is contained in:
Developer 02
2025-01-14 19:45:44 +01:00
parent a0ad8d732d
commit 287871ddc6
5 changed files with 0 additions and 17 deletions

View File

@@ -9,8 +9,6 @@ namespace DigitalData.Core.Abstractions.Security
{
IAsymmetricTokenValidator Validator { get; }
string? ApiRoute { get; }
TimeSpan Lifetime { get; init; }
#region SecurityTokenDescriptor Map

View File

@@ -10,8 +10,6 @@ namespace DigitalData.Core.Abstractions.Security
SecurityToken CreateToken(TPrincipal subject, string issuer, string audience);
SecurityToken CreateToken(TPrincipal subject, string apiRoute);
string WriteToken(SecurityToken token);
}
}

View File

@@ -57,9 +57,6 @@ namespace DigitalData.Core.Abstractions.Security
public static string WriteToken<TPrincipal>(this IJwtSignatureHandler<TPrincipal> handler, TPrincipal subject, string issuer, string audience)
=> handler.WriteToken(handler.CreateToken(subject: subject, issuer: issuer, audience: audience));
public static string WriteToken<TPrincipal>(this IJwtSignatureHandler<TPrincipal> handler, TPrincipal subject, string apiRoute)
=> handler.WriteToken(handler.CreateToken(subject: subject, apiRoute: apiRoute));
#endregion Jwt Signature Handler
}
}