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
|
|
@ -1,11 +1,11 @@
|
|||
using System.Linq.Expressions;
|
||||
using IdentityShroud.Core.Model;
|
||||
using IdentityShroud.Core.Security;
|
||||
using IdentityShroud.Core.Security.Keys;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using Microsoft.Extensions.Options;
|
||||
|
||||
namespace IdentityShroud.Core;
|
||||
namespace IdentityShroud.Core.EFCore;
|
||||
|
||||
public class DbConfiguration
|
||||
{
|
||||
|
|
@ -20,7 +20,7 @@ public class Db(
|
|||
{
|
||||
public virtual DbSet<Client> Clients { get; set; }
|
||||
public virtual DbSet<Realm> Realms { get; set; }
|
||||
public virtual DbSet<RealmKey> Keys { get; set; }
|
||||
public virtual DbSet<RealmSigningKey> Keys { get; set; }
|
||||
public virtual DbSet<RealmDek> Deks { get; set; }
|
||||
|
||||
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
|
||||
|
|
@ -50,6 +50,10 @@ public class Db(
|
|||
base.ConfigureConventions(b);
|
||||
|
||||
b.Properties<DekId>().HaveConversion<DekIdConverter>();
|
||||
b.Properties<Dictionary<string, string>>().HaveConversion<DictionaryToJsonConverter<string, string>>();
|
||||
b.Properties<JwtSigAlgName>().HaveConversion<JwtSigAlgNameConverter>();
|
||||
b.Properties<KekId>().HaveConversion<KekIdConverter>();
|
||||
b.Properties<KeyType>().HaveConversion<KeyTypeConverter>();
|
||||
b.Properties<RealmSigningKeyId>().HaveConversion<RealmSigningKeyIdConverter>();
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue