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
19
IdentityShroud.Core/Security/Keys/Aes/AesProvider.cs
Normal file
19
IdentityShroud.Core/Security/Keys/Aes/AesProvider.cs
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
using System.Security.Cryptography;
|
||||
using IdentityShroud.Core.Messages;
|
||||
|
||||
namespace IdentityShroud.Core.Security.Keys.Aes;
|
||||
|
||||
public class AesProvider : IKeyProvider
|
||||
{
|
||||
public bool IsPublic => false;
|
||||
public KeyData CreateKey(KeyPolicy policy)
|
||||
{
|
||||
return new KeyData(RandomNumberGenerator.GetBytes(policy.KeySize / 8));
|
||||
}
|
||||
|
||||
public void SetJwkParameters(Dictionary<string, string> parameters, JsonWebKey jwk)
|
||||
{
|
||||
// Can we use this for Jwe?
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue