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,4 +1,5 @@
|
|||
using IdentityShroud.Core.Contracts;
|
||||
using IdentityShroud.Core.Model;
|
||||
using IdentityShroud.Core.Security;
|
||||
|
||||
namespace IdentityShroud.TestUtils.Substitutes;
|
||||
|
|
@ -6,12 +7,12 @@ namespace IdentityShroud.TestUtils.Substitutes;
|
|||
public class NullDataEncryptionService : IDataEncryptionService
|
||||
{
|
||||
public DekId KeyId { get; } = DekId.NewId();
|
||||
public EncryptedValue Encrypt(ReadOnlySpan<byte> plain)
|
||||
public EncryptedValue Encrypt(RealmDek key, ReadOnlySpan<byte> plain)
|
||||
{
|
||||
return new(KeyId, plain.ToArray());
|
||||
}
|
||||
|
||||
public byte[] Decrypt(EncryptedValue input)
|
||||
public byte[] Decrypt(IReadOnlyList<RealmDek> keys, EncryptedValue input)
|
||||
{
|
||||
return input.Value;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue