refactor(TokenDescriptorProvider): verwendete Primärstruktur.
This commit is contained in:
parent
06260e0edb
commit
4142d2d948
@ -4,16 +4,9 @@ using Microsoft.IdentityModel.Tokens;
|
|||||||
|
|
||||||
namespace DigitalData.Core.Security
|
namespace DigitalData.Core.Security
|
||||||
{
|
{
|
||||||
public class TokenDescriptorProvider
|
public class TokenDescriptorProvider(IMapper mapper)
|
||||||
{
|
{
|
||||||
private readonly IMapper _mapper;
|
|
||||||
|
|
||||||
public TokenDescriptorProvider(IMapper mapper)
|
|
||||||
{
|
|
||||||
_mapper = mapper;
|
|
||||||
}
|
|
||||||
|
|
||||||
public SecurityTokenDescriptor Create(TokenDescription description)
|
public SecurityTokenDescriptor Create(TokenDescription description)
|
||||||
=> _mapper.Map(description, new SecurityTokenDescriptor());
|
=> mapper.Map(description, new SecurityTokenDescriptor());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user