refactor(auth): migrate Auth module from feature to core package

- Reorganized `auth-feature` into `core/auth` to improve architecture and modularity.
- Removed unused PKCE and OAuth callback utilities (`AuthCallbackParams`, `OAuthPkceService`).
- Updated imports and adjusted build scripts to reflect new module structure.
- Refactored `LoginScreen` and `PingScreen` to include `onBack` functionality in top bars for improved navigation.
- Corrected sync endpoint in `PingSyncService`.
This commit is contained in:
2026-01-23 01:16:40 +01:00
parent c692a2395c
commit d7cf8200e1
34 changed files with 470 additions and 773 deletions
@@ -0,0 +1,50 @@
---
type: Report
status: DRAFT
owner: Frontend Expert
date: 2026-01-22
tags: [frontend, auth, refactoring]
---
# 🚩 Statusbericht: Frontend Authentifizierung & Refactoring
**Status:****Erfolgreich implementiert**
Wir haben die Authentifizierung im Frontend implementiert und dabei signifikante Verbesserungen an der Architektur vorgenommen.
### 🎯 Erreichte Meilensteine
1. **Architektur-Hygiene:**
* `auth-feature` ist nun `core-auth` (Infrastruktur statt Feature).
* Design-System Packages sind bereinigt.
* Klare Trennung von UI und Logik.
2. **Login-Flow (Desktop):**
* Login mit Username/Passwort funktioniert (`postman-client`).
* Token-Management (In-Memory) funktioniert.
* Logout funktioniert sauber.
3. **Backend-Integration:**
* `Secure Ping` und `Sync` Endpunkte sind mit Token erreichbar.
* 401/403 Fehler werden korrekt behandelt.
### 🔍 Testergebnisse
| Szenario | Erwartet | Ergebnis | Status |
| :--- | :--- | :--- | :--- |
| **Login (korrekt)** | 200 OK, Token erhalten | 200 OK | ✅ |
| **Login (falsch)** | 401 Unauthorized | 401 Unauthorized | ✅ |
| **Secure Ping (ohne Login)** | 401 Unauthorized | 401 Unauthorized | ✅ |
| **Secure Ping (mit Login)** | 200 OK | 200 OK | ✅ |
| **Sync (mit Login)** | 200 OK | 200 OK | ✅ |
| **Logout** | Token gelöscht, UI Reset | Funktioniert | ✅ |
### 📝 Nächste Schritte
1. **User-Info Parsing:** Korrektes Auslesen des Usernamens (`preferred_username`) aus dem Token.
2. **Web-Support:** Re-Aktivierung des PKCE Flows für die Web-Variante.
3. **Members Feature:** Implementierung der echten Fachlogik für Mitgliederverwaltung.
---
**Fazit:** Das Fundament steht. Die App ist sicher und kommuniziert erfolgreich mit dem Backend.