refactor(TokenDescriptor): ApiRoute-Eigenschaft entfernt
This commit is contained in:
@@ -9,8 +9,6 @@ namespace DigitalData.Core.Abstractions.Security
|
||||
{
|
||||
IAsymmetricTokenValidator Validator { get; }
|
||||
|
||||
string? ApiRoute { get; }
|
||||
|
||||
TimeSpan Lifetime { get; init; }
|
||||
|
||||
#region SecurityTokenDescriptor Map
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user