refactor(TokenDescriptor): ApiRoute-Eigenschaft entfernt
This commit is contained in:
@@ -36,13 +36,5 @@ namespace DigitalData.Core.Security
|
||||
?? throw new InvalidOperationException($"No or multiple token description found for issuer '{issuer}' and audience '{audience}'.");
|
||||
return CreateToken(subject: subject, descriptor: descriptor);
|
||||
}
|
||||
|
||||
public SecurityToken CreateToken(TPrincipal subject, string apiRoute)
|
||||
{
|
||||
var desc = _cryptoFactory.TokenDescriptors.SingleOrDefault(desc => desc.ApiRoute == apiRoute)
|
||||
?? throw new InvalidOperationException($"No or multiple token description found for api route '{apiRoute}'.");
|
||||
|
||||
return CreateToken(subject: subject, descriptor: desc);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user