Happy flow for creating realms works
But needs more validating...
This commit is contained in:
parent
f99c97f392
commit
92b34bd0b5
25 changed files with 437 additions and 12 deletions
17
IdentityShroud.Core/Security/ConfigurationSecretProvider.cs
Normal file
17
IdentityShroud.Core/Security/ConfigurationSecretProvider.cs
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
using IdentityShroud.Core.Contracts;
|
||||
using Microsoft.Extensions.Configuration;
|
||||
|
||||
namespace IdentityShroud.Core.Security;
|
||||
|
||||
/// <summary>
|
||||
/// Secret provider that retrieves secrets from configuration.
|
||||
/// </summary>
|
||||
public class ConfigurationSecretProvider(IConfiguration configuration) : ISecretProvider
|
||||
{
|
||||
private readonly IConfigurationSection secrets = configuration.GetSection("secrets");
|
||||
|
||||
public string GetSecretAsync(string name)
|
||||
{
|
||||
return secrets.GetValue<string>(name) ?? "";
|
||||
}
|
||||
}
|
||||
7
IdentityShroud.Core/Security/RsaHelper.cs
Normal file
7
IdentityShroud.Core/Security/RsaHelper.cs
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
using System.Security.Cryptography;
|
||||
|
||||
namespace IdentityShroud.Core.Security;
|
||||
|
||||
public static class RsaHelper
|
||||
{
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue