12 lines
355 B
C#
12 lines
355 B
C#
using AutoMapper;
|
|
using DigitalData.Core.Security.Config;
|
|
using Microsoft.IdentityModel.Tokens;
|
|
|
|
namespace DigitalData.Core.Security
|
|
{
|
|
public class TokenDescriptorProvider(IMapper mapper)
|
|
{
|
|
public SecurityTokenDescriptor Create(TokenDescription description)
|
|
=> mapper.Map(description, new SecurityTokenDescriptor());
|
|
}
|
|
} |