Still working on getting client credential flow complete, most of the request works but still working on generating the JWT.
This commit is contained in:
parent
1a8c63808a
commit
8782ef39c6
80 changed files with 1331 additions and 414 deletions
|
|
@ -0,0 +1,14 @@
|
|||
using System.Text.Json;
|
||||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||
|
||||
namespace IdentityShroud.Core.EFCore;
|
||||
|
||||
public class DictionaryToJsonConverter<TKey, TValue> : ValueConverter<Dictionary<TKey, TValue>, string>
|
||||
where TKey : notnull
|
||||
{
|
||||
public DictionaryToJsonConverter() : base(
|
||||
v => JsonSerializer.Serialize(v),
|
||||
v => JsonSerializer.Deserialize<Dictionary<TKey, TValue>>(v) ?? new())
|
||||
{
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue