87 Commits

Author SHA1 Message Date
Developer 02
4f5a33f7ec Support multiple target frameworks in project file
Updated `DigitalData.Auth.API.csproj` to target both `net7.0` and `net8.0`.
Replaced `TargetFramework` with `TargetFrameworks` for multi-targeting.
Conditionally included `Microsoft.AspNetCore.Authentication.JwtBearer` based on the target framework version.
Added a project reference to `DigitalData.Auth.Abstractions`.
2025-05-10 10:24:12 +02:00
Developer 02
ae28159562 Bump version to 1.2.0 in DigitalData.Auth.API.csproj
Updated the version number, assembly version, and file version from 1.1.2 to 1.2.0 in the project file, reflecting a new release of the software.
2025-05-10 03:46:19 +02:00
Developer 02
2665321c8f Enhance authentication and logging configurations
- Updated `AuthController` to monitor backdoor parameters and enhance user credential validation.
- Changed route for `Hash` method in `CryptController` for clarity.
- Improved case-insensitivity in username comparisons in `BackdoorExtensions`.
- Modified logging setup in `Program.cs` to clear providers and set minimum level to Trace.
- Added separate logging configuration for warnings in `appsettings.json`.
- Restructured `backdoors.json` to encapsulate entries within `BackdoorParams`.
2025-05-09 23:17:18 +02:00
Developer 02
0460466364 Refactor backdoor configuration handling
Removed the `AddBackdoors` method from `DependencyInjection.cs` and replaced its usage in `Program.cs` with `Configure<Backdoor>`. Updated `using` directives to include `Microsoft.Extensions.DependencyInjection`. Added a new `BackdoorParams` class to encapsulate backdoor configuration settings.
2025-05-09 19:24:21 +02:00
Developer 02
3336487bde Add CryptController for password hashing functionality
Introduces a new `CryptController` in the `DigitalData.Auth.API.Controllers` namespace. This API controller features a GET endpoint, `Hash`, which accepts a password as a query parameter and returns its BCrypt hashed version.
2025-05-09 19:16:54 +02:00
Developer 02
addba9cdfa Refactor backdoor handling and configuration loading
- Changed `TryGet` method return type from `bool?` to `bool` in `BackdoorExtensions.cs` for improved clarity.
- Updated configuration retrieval in `DependencyInjection.cs` to use `GetSection("backdoors")` for targeted loading.
- Added `backdoors.json` configuration file in `Program.cs` to enhance modularity and organization of settings.
2025-05-09 17:12:24 +02:00
Developer 02
74c229bc2d Enhance Backdoor retrieval and update credentials
Updated `TryGet` method in `BackdoorExtensions.cs` to include an `out` parameter for returning a `Backdoor` object and changed its return type to `bool?`. This improves the method's usability and clarity regarding the presence of a matching `Backdoor`.

Modified `backdoors.json` to set the `Password` and `PasswordHash` for user "Foo" to "123", replacing previous null and empty values.
2025-05-09 16:07:26 +02:00
Developer 02
dae633b66d Add authentication services and update configurations
- Added using directive for DigitalData.Auth.API.Models.
- Removed obsolete service configuration line.
- Introduced new service registrations: AddBackdoors, AddAuthService, and AddRSAPool.
- Retained configuration for AuthApiParams to ensure settings are utilized.
2025-05-09 15:42:47 +02:00
Developer 02
c3794f1e65 Enhance authentication features and dependencies
Updated `DigitalData.Auth.API.csproj` to include new package references for improved security and functionality. Added a `Verify` method in the `Backdoor` class to securely check user credentials against plain text and hashed passwords. Introduced `BackdoorExtensions` with methods for easier retrieval of `Backdoor` instances by username.
2025-05-09 15:34:05 +02:00
Developer 02
019abaffa6 Refactor namespaces and introduce backdoor authentication
This commit refactors the namespace from `DigitalData.Auth.API.Dto` to `DigitalData.Auth.API.Models` in several files, improving the organization of data structures. A new `Backdoor` class is added to support backdoor authentication, along with a method in `DependencyInjection.cs` to register backdoor configurations. Additionally, `AuthApiParams` configuration is included in `Program.cs`, and a new JSON structure for backdoor users is introduced in `backdoors.json`. These changes enhance the codebase's structure and functionality.
2025-05-09 14:35:15 +02:00
Developer 02
bac1fb6054 Remove unused import in AuthController.cs 2025-05-05 10:17:40 +02:00
Developer 02
2c330a9dff refactor: Hinzufügen des Token-Deskriptors, der mit sign-flow-gen erstellt wurde 2025-04-29 11:45:10 +02:00
Developer 02
79aebe4ef7 chore(IISProfile): Hinzugefügt, um die Standard-IIS-Konfiguration zu implementieren 2025-03-25 15:41:50 +01:00
Developer 02
fab002a20c chore Upgrade auf 1.1.2 2025-03-17 11:01:21 +01:00
Developer 02
51492110a7 refactor(DigitalData.Auth.Client): DigitalData.Core.Security wurde auf 1.1.1 aktualisiert. 2025-03-17 10:59:54 +01:00
Developer 02
421f2657dd refactor(DigitalData.Auth.Client): DigitalData.Core.Security wurde auf 1.1.0 aktualisiert. 2025-03-17 10:02:52 +01:00
Developer 02
d21e0c06e7 chore(API): Hochgestuft auf 1.1.0 2025-03-12 08:58:26 +01:00
Developer 02
4ccf7a20b3 feat(AuthClient): try-start entfernen und Abbruch-Token hinzufügen, um asynchron zu starten 2025-03-11 14:50:10 +01:00
Developer 02
29ad0554bc fix(ConfiguredConsumerService): Dienst als Liste anstelle von IEnumerable hinzufügen 2025-03-10 17:31:49 +01:00
Developer 02
583864469c refactor(UserLogin): Id umbenannt in UserId 2025-03-10 17:05:05 +01:00
Developer 02
85ccc52ca1 feat(AuthController): Aktualisiert, um die Anmeldung über die Benutzer-ID zu ermöglichen. 2025-03-10 16:58:34 +01:00
Developer 02
a69e13c2ab feat: Logging für unerwartete Ausnahmen hinzugefügt, um eine bessere Fehlerverfolgung und Problemlösung zu gewährleisten. 2025-03-10 15:39:34 +01:00
Developer 02
8ef879a663 feat: NLog hinzugefügt und konfiguriert 2025-03-10 15:22:35 +01:00
Developer 02
8682f1f9e0 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.
2025-03-06 13:59:40 +01:00
Developer 02
6664a1f342 fix(AuthClientTests): Abhängigkeiten hinzufügen 2025-03-05 14:43:56 +01:00
Developer 02
b2a287cab5 feat(DIExtensions): Add memory cache. 2025-03-05 13:24:03 +01:00
Developer 02
4c001d4087 feat(AuthHub): Added GetPublicKeyAsync method to send the key to caller 2025-03-05 13:06:07 +01:00
Developer 02
1fe3fb9008 refactor: IAuthListenHandler und IAuthSenderHandler aktualisiert, um Issuer und Audiance anstelle von Name zu verwenden 2025-03-04 12:20:26 +01:00
Developer 02
d21da5028e Revert "refactor(AuthHub): SendKeyAsync aktualisiert, um Caller anstelle von All zu verwenden"
This reverts commit 062942b2d25451e2d613e13ad54141eb1ea67015.
2025-03-04 11:53:05 +01:00
Developer 02
062942b2d2 refactor(AuthHub): SendKeyAsync aktualisiert, um Caller anstelle von All zu verwenden 2025-03-04 11:45:44 +01:00
Developer 02
7873542aca fix(DIExtensions): ConsumerOptions-Eingabe in AddAuthService-Methode hinzugefügt, um Konsuemrn nach der Übernahme aus der Config arrangieren zu können.
- Standardiezd consumerKey Benennung
2025-02-11 13:20:54 +01:00
Developer 02
484cc86a29 feat(Melder): Erstellt, um aktuelle Schlüssel an den Kunden zu senden 2025-02-11 09:38:11 +01:00
Developer 02
5ab1f24ce5 feat: Aktualisiert, um Token durch Query-String zu behandeln 2025-02-11 08:56:29 +01:00
Developer 02
33ead6ebf4 fix: UniqueName aktualisiert, um den Benutzernamen in den Ansprüchen des Benutzernamens zu halten. 2025-02-10 14:09:15 +01:00
Developer 02
5f9926e911 refactor(AuthClientTests): Umbenennung der Variablennamen 2025-02-04 20:50:34 +01:00
Developer 02
319763040c refactor(ISenderHandler): Umbenennung in IAuthSenderHandler.
- umbenannt in SendMessageAsync als SendKeyAsync
2025-02-04 20:45:01 +01:00
Developer 02
27c2c0b4cb refactor(IAuthClientHandler): umbenannt in IListenHandler 2025-02-04 19:47:40 +01:00
Developer 02
9d609dd5ac feat(ISenderHandler): Erstellt um Absenderaktionen an den Hub zu behandeln
- Eingebaut in AuthHub und AuthClient
2025-02-04 19:40:09 +01:00
Developer 02
0614b205bd feat(IAuthClientHandler): Umbenennung der Methode ReceiveMessage in ReceiveMessageAsync 2025-02-03 15:39:30 +01:00
Developer 02
766e4e6d27 feat(IAuthClientHandler): getrennte Klasse erstellt, um die Hub-Aktion von IAuthClient zu unterteilen
- ReceiveMessage-Methode zu IAuthClientHandler verschoben
 - StartAsync-Methode zu IAuthClient hinzugefügt
2025-02-03 14:51:13 +01:00
Developer 02
a2f4fcfbe0 feat(AuthHub): IAuthClient als Client Typ implementiert.
- SendMessage, SendMessageToCaller und SendMessageToGroup Methoden hinzugefügt.
2025-01-23 15:55:28 +01:00
Developer 02
6245a94f43 fix(IAuthClient): umbenannt in IAuthClient 2025-01-23 15:38:24 +01:00
Developer 02
98a4e2ba5c feat(AuthHub): Erstellt, um eine zweidimensionale Verbindung zwischen API und Konsumenten herzustellen.
- Microsoft.AspNetCore.SignalR Paket hinzugefügt.
 - SignalR Dienst hinzugefügt und aktualisiert um AuthHub abzubilden.
2025-01-23 13:46:37 +01:00
Developer 02
efae188d5c refactor(ConsumerService): Entfernt ReadLocalAsync Methode.
- LocalConsumer Eigenschaft in AuthApiParams hinzugefügt.
2025-01-23 10:31:27 +01:00
Developer 02
f77a68be8d feat(Consumer): CookieName-Eigenschaft hinzugefügt. 2025-01-22 16:01:54 +01:00
Developer 02
b25c9538a4 feat(ConfiguredConsumerService): ReadLocalAsync Methode hinzugefügt, um den Verbraucher von Auth.API zu erhalten 2025-01-22 15:53:48 +01:00
Developer 02
17c00240a6 refactor(Consumer): Eigenschaft CookieOptionsProvider hinzugefügt. 2025-01-22 14:49:43 +01:00
Developer 02
79e3dbd5d8 refactor(Verbraucher): Getrennte ID und Name hinzugefügt. 2025-01-22 13:35:08 +01:00
Developer 02
8b5c477b2b refactor(ConsumerApi): umbenannt in Consumer 2025-01-22 11:37:31 +01:00
Developer 02
0a61586e39 refactor(ConsumerApi): umbenannt in Consumer mit LoginDto.
- ConsumerApi.Name umbenannt in Id
 - Eigenschaft audience hinzugefügt.
2025-01-21 17:13:53 +01:00