Commit Graph

41 Commits

Author SHA1 Message Date
163916e330 Update dependencies and integrate EnvelopeGenerator
Updated `DigitalData.Auth.Tests.csproj` to include `Microsoft.EntityFrameworkCore` version `8.0.17`.

Refactored `AuthController.cs` to remove unused imports and update to the latest `DigitalData.Core.Abstraction.Application` namespaces.

Streamlined `DigitalData.Auth.API.csproj`:
- Changed target framework to `net8.0`.
- Upgraded `DigitalData.Core.Abstractions` to `4.3.0` and `DigitalData.Core.Application` to `3.4.0`.
- Added `EnvelopeGenerator` and `Microsoft.EntityFrameworkCore` dependencies.
- Removed outdated `UserManager` dependencies.

Enhanced `Program.cs`:
- Integrated `EnvelopeGenerator` services with database context and caching configuration.
- Removed `AddUserManager` service registration.
- Added SQL Server logging and error handling for `DbContext`.

These changes improve maintainability, adopt modern frameworks, and introduce new functionality with `EnvelopeGenerator`.
2026-05-28 22:26:31 +02:00
ce69779c9f Enhance JWT user claims with configurable roles
Updated Program.cs to include "CommonUserRoles" from configuration in JWT claims for users, adding them under ClaimTypes.Role if present. Also added System.Security.Claims using directive to support this change. This enables dynamic role assignment in user tokens.
2026-02-03 13:58:32 +01:00
fec5a21612 Restrict NLog setup to non-dev; set log level to Trace
NLog provider setup and clearing of logging providers now occur
only outside development environments. The minimum logging level
is explicitly set to Trace for all environments.
2026-02-02 12:55:41 +01: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
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
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
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
421f2657dd refactor(DigitalData.Auth.Client): DigitalData.Core.Security wurde auf 1.1.0 aktualisiert. 2025-03-17 10:02:52 +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
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
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
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
Developer 02
47aeb49a40 feat(ClaimExtensions): Ermöglicht die Bereitstellung von Methoden zum Abrufen spezifischer Ansprüche. 2025-01-21 16:38:09 +01:00
Developer 02
a1f996b328 feat: DependentExtensions für extensions mit Abhängigkeiten hinzugefügt
- Methoden `AddDependentExtensions` und `TryGetByRoute` hinzugefügt, um die Konfiguration von `AuthApiParams` und das Abrufen von Deskriptoren zu ermöglichen.
2025-01-21 15:23:22 +01:00
Developer 02
ccd716badb chore: UserManager aktualisiert, um stringLocalizer-Abhängigkeit zu entfernen 2025-01-20 14:43:10 +01:00
Developer 02
077635e94b feat(AuthController): ValidateCredentials Methode async in CreateTokenAsync Methode gemacht.
- Core.Abstractions auf 3.2 aktualisiert
 - Core.Application 3.2 hinzugefügt
2025-01-20 10:45:03 +01:00
Developer 02
c6c4d0bd04 refactor(ConsumerApi): In das Verzeichnis „Entities“ verschoben. 2025-01-20 10:13:01 +01:00
Developer 02
a73885286f fix: Aktualisiert, um die Konfiguration über consumers-api.json zu ermöglichen. 2025-01-20 10:09:13 +01:00
Developer 02
d6315ce8a5 chore: Initiliazed Version als 1.0.0.
- Funktionalität zum Ausführen von Swagger in der Produktion hinzugefügt.
2025-01-17 13:49:40 +01:00
Developer 02
69efe28310 chore: Added directory search service 2025-01-15 13:17:56 +01:00
Developer 02
cd4428b8f0 reparieren: App-Einstellungen so angeordnet, dass sie Consuemr-Apis erreichen können 2025-01-15 12:58:42 +01:00
Developer 02
a66570bebb feat(AuthController): Erstellt, um Token für Benutzer von UserManager bereitzustellen. 2025-01-15 12:53:51 +01:00
Developer 02
0a3e1566eb Reapply "chore: issuerSigningKeyInitiator konfiguriert, um SecuritKey zu erhalten."
This reverts commit de296d34f3.
2025-01-15 11:02:56 +01:00
Developer 02
de296d34f3 Revert "chore: issuerSigningKeyInitiator konfiguriert, um SecuritKey zu erhalten."
This reverts commit 314bb08125.
2025-01-15 11:01:27 +01:00
Developer 02
314bb08125 chore: issuerSigningKeyInitiator konfiguriert, um SecuritKey zu erhalten. 2025-01-15 11:00:48 +01:00
Developer 02
9c5c0dc61b chore: Eintragungspunktträger in Swagger hinzugefügt 2025-01-15 10:56:33 +01:00
Developer 02
3231aa3299 feat(JwtSignatureHandler): Für Benutzer von in UserManager hinzugefügt. 2025-01-15 10:54:40 +01:00
Developer 02
9d35881327 feat(JwtSignatureHandler): Hinzugefügt für ConsumerApi. 2025-01-15 10:33:16 +01:00
Developer 02
f898d8c4a4 feat(CryptoFactory): Hinzugefügt und in appsettings.json konfiguriert. 2025-01-15 10:30:48 +01:00
Developer 02
82f23d447b chore: Authentifizierung mit layz loading hinzugefügt. 2025-01-15 10:25:51 +01:00
Developer 02
b1bfc46a60 feat(DIExtensions): Zur Verwaltung von Abhängigkeitsinjektionen von ConsumerAPiService. 2025-01-15 10:19:25 +01:00
Developer 02
404ab74ce1 refactor(consumer.json): umbenannt in consumer-api.json 2025-01-15 09:45:47 +01:00
Developer 02
34b939f75a feat(AuthApiParams): Konfiguriert über IOptions. 2025-01-15 09:42:40 +01:00
Developer 02
6553104f8d chore(consumers.json): Im Projektverzeichnis erstellt und zur Konfiguration hinzugefügt. 2025-01-15 09:41:42 +01:00
Developer 02
45c161d3cd feat: Erstelle die anfängliche Lösung DigitalData.Auth.API 2024-11-14 13:05:18 +01:00