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,15 +1,18 @@
|
|||
using IdentityShroud.Core.Security.Keys.Aes;
|
||||
using IdentityShroud.Core.Security.Keys.Rsa;
|
||||
|
||||
namespace IdentityShroud.Core.Security.Keys;
|
||||
|
||||
public class KeyProviderFactory : IKeyProviderFactory
|
||||
{
|
||||
public IKeyProvider CreateProvider(string keyType)
|
||||
public IKeyProvider CreateProvider(KeyType keyType)
|
||||
{
|
||||
switch (keyType)
|
||||
switch (keyType.Name)
|
||||
{
|
||||
case "RSA":
|
||||
return new RsaProvider();
|
||||
case "AES":
|
||||
return new AesProvider();
|
||||
default:
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue