Refine Passkey registration logging and API options for local authenticators
Some checks failed
Code Analysis (JS/Vue) / analyze (push) Failing after 43s
Some checks failed
Code Analysis (JS/Vue) / analyze (push) Failing after 43s
Update the registrieren.vue component to enhance debug logging for local authenticator usage, providing clearer messages about the expected behavior during registration. Modify the register-passkey-options API to specify the use of local authenticators, ensuring better clarity on the authenticator selection process. This update aims to improve user understanding and troubleshooting during Passkey registration without the need for Cross-Device functionality.
This commit is contained in:
@@ -745,24 +745,33 @@ const handleRegisterWithPasskey = async () => {
|
||||
// Prüfe, ob ein lokaler Authenticator verfügbar ist
|
||||
// Wenn ja, wird möglicherweise kein Cross-Device verwendet
|
||||
if (platformAuthAvailable) {
|
||||
console.warn('[DEBUG] ⚠️ WARNUNG: Platform Authenticator ist verfügbar!')
|
||||
console.warn('[DEBUG] Der Browser könnte einen lokalen Authenticator verwenden (Windows Hello, TouchID)')
|
||||
console.warn('[DEBUG] statt Cross-Device. Prüfe, ob ein QR-Code erscheint oder ein lokaler Dialog.')
|
||||
console.log('[DEBUG] ✅ Platform Authenticator ist verfügbar!')
|
||||
console.log('[DEBUG] Der Browser wird wahrscheinlich einen lokalen Authenticator verwenden:')
|
||||
console.log('[DEBUG] - Windows Hello (biometrisch oder PIN)')
|
||||
console.log('[DEBUG] - TouchID auf Mac')
|
||||
console.log('[DEBUG] - USB-Sicherheitsschlüssel')
|
||||
console.log('[DEBUG] - Lokale Passkey-Speicherung im Browser')
|
||||
console.log('[DEBUG] Das ist NORMAL und FUNKTIONIERT ohne Smartphone!')
|
||||
console.log('[DEBUG] Cross-Device ist nur eine Option, nicht zwingend erforderlich.')
|
||||
} else {
|
||||
console.log('[DEBUG] ⚠️ Platform Authenticator ist NICHT verfügbar.')
|
||||
console.log('[DEBUG] Der Browser könnte Cross-Device verwenden (Smartphone via QR-Code).')
|
||||
console.log('[DEBUG] Oder einen USB-Sicherheitsschlüssel.')
|
||||
}
|
||||
|
||||
// Versuche startRegistration aufzurufen
|
||||
// Bei Cross-Device wird automatisch ein QR-Code generiert
|
||||
// Der Browser sollte eine Verbindung zu Tunnel-Servern aufbauen (cable.ua5v.com, cable.auth.com)
|
||||
// Mit authenticatorAttachment: 'platform' wird ein lokaler Authenticator verwendet:
|
||||
// - Browser-eigene Passkey-Speicherung (Chrome Password Manager, Firefox Password Manager, etc.)
|
||||
// - Windows Hello (biometrisch oder PIN)
|
||||
// - TouchID auf Mac
|
||||
// - KEIN Cross-Device (kein Smartphone nötig)
|
||||
console.log('[DEBUG] Calling startRegistration...')
|
||||
console.log('[DEBUG] ⚠️ WICHTIG: Prüfe Browser Network-Tab während startRegistration läuft!')
|
||||
console.log('[DEBUG] Erwartete Tunnel-Server-Requests:')
|
||||
console.log('[DEBUG] - cable.ua5v.com (Google Chrome/Edge)')
|
||||
console.log('[DEBUG] - cable.auth.com (Apple Safari)')
|
||||
console.log('[DEBUG] - Andere Tunnel-Server (abhängig vom Browser)')
|
||||
console.log('[DEBUG] Wenn KEINE Tunnel-Requests sichtbar sind:')
|
||||
console.log('[DEBUG] → Cross-Device wird NICHT verwendet')
|
||||
console.log('[DEBUG] → Möglicherweise wird ein lokaler Authenticator verwendet')
|
||||
console.log('[DEBUG] → Oder der Browser unterstützt Cross-Device nicht')
|
||||
console.log('[DEBUG] Konfiguriert für lokale Passkey-Speicherung im Browser')
|
||||
console.log('[DEBUG] Erwartetes Verhalten:')
|
||||
console.log('[DEBUG] - Browser zeigt Dialog für Passkey-Erstellung')
|
||||
console.log('[DEBUG] - Passkey wird lokal im Browser gespeichert')
|
||||
console.log('[DEBUG] - KEIN QR-Code (Cross-Device wird nicht verwendet)')
|
||||
console.log('[DEBUG] - KEIN Smartphone nötig')
|
||||
|
||||
credential = await mod.startRegistration({ optionsJSON: pre.options })
|
||||
|
||||
|
||||
Reference in New Issue
Block a user