feat(AsymmetricPublicKey): zu Abstractions.Models hinzugefügt, um den Empfang öffentlicher Schlüssel zu behandeln.
- AsymmetricPublicKey-Liste mit dem Namen Public Keys zu IAuthClient hinzugefügt.
This commit is contained in:
parent
fb486296f2
commit
8682f1f9e0
@ -16,11 +16,20 @@
|
||||
<PackageTags>Digital Data Auth Authorization Authentication Abstractions</PackageTags>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Compile Remove="PublicKey.cs" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<None Include="..\..\nuget-package-icons\auth_icon.png">
|
||||
<Pack>True</Pack>
|
||||
<PackagePath>\</PackagePath>
|
||||
</None>
|
||||
<None Include="Models\AsymmetricPublicKey.cs" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="DigitalData.Core.Abstractions" Version="3.3.0" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
||||
@ -1,4 +1,6 @@
|
||||
namespace DigitalData.Auth.Abstractions;
|
||||
using DigitalData.Auth.Abstractions.Models;
|
||||
|
||||
namespace DigitalData.Auth.Abstractions;
|
||||
|
||||
public interface IAuthClient : IAuthListenHandler, IAuthSenderHandler
|
||||
{
|
||||
@ -7,4 +9,6 @@ public interface IAuthClient : IAuthListenHandler, IAuthSenderHandler
|
||||
Task StartAsync();
|
||||
|
||||
Task<bool> TryStartAsync();
|
||||
|
||||
IEnumerable<AsymmetricPublicKey> PublicKeys { get; }
|
||||
}
|
||||
14
DigitalData.Auth.Abstractions/Models/AsymmetricPublicKey.cs
Normal file
14
DigitalData.Auth.Abstractions/Models/AsymmetricPublicKey.cs
Normal file
@ -0,0 +1,14 @@
|
||||
using DigitalData.Core.Abstractions.Security;
|
||||
|
||||
namespace DigitalData.Auth.Abstractions.Models;
|
||||
|
||||
public class AsymmetricPublicKey : IUniqueSecurityContext, IAsymmetricPublicKey
|
||||
{
|
||||
public required string Issuer { get; init; }
|
||||
|
||||
public required string Audience { get; init; }
|
||||
|
||||
public string? Id { get; init; }
|
||||
|
||||
public string Content { get; protected set; } = string.Empty;
|
||||
}
|
||||
@ -10,7 +10,7 @@
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="DigitalData.Core.Abstractions" Version="3.2.0" />
|
||||
<PackageReference Include="DigitalData.Core.Abstractions" Version="3.3.0" />
|
||||
<PackageReference Include="DigitalData.Core.Application" Version="3.2.0" />
|
||||
<PackageReference Include="DigitalData.Core.Security" Version="1.0.0" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="8.0.12" />
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user