fix(mcp): connecting an assistant asks for a recent sign-in or re-proof

Allowing an AI assistant hands it a standing credential to the record
that outlives the session, the same class of act as minting a token, but
the consent took a live session alone. A stolen session could connect
its own assistant and keep reading after the owner signed everything out.

The consent page now shows the Allow form only when the session signed in
or re-proved within five minutes (with the second factor on an account
that has one). Otherwise it links to a new confirm page that runs the
same re-proof dialog as the rest of the app and returns to the exact
consent request. The allow decision checks again and mints nothing
without it; deny needs no proof. The confirm page only ever returns to
the consent endpoint.
This commit is contained in:
Marc-André Bombeck committed 2026-09-26 22:38:40 +02:00
1 parent a294d7f684
commit 1900792756
14 files changed
+358 -3

No files matched your search

+7
View File
@@ -471,6 +471,13 @@
"title": "Zweiten Faktor einrichten",
"body": "Dein Administrator verlangt einen zweiten Faktor für dieses Konto. Füge eine Authenticator-App oder einen Sicherheitsschlüssel hinzu, um fortzufahren.",
"signOut": "Abmelden"
},
"confirmAccess": {
"title": "Bestätige, dass du es bist",
"body": "Ein Assistent möchte sich mit deinen HealthLog-Daten verbinden. Bestätige, dass du es bist; danach entscheidest du, ob du es erlaubst.",
"action": "Bestätigen",
"failed": "Das hat nicht geklappt. Bitte versuche es noch einmal.",
"nothingToConfirm": "Hier gibt es nichts zu bestätigen. Starte die Verbindung noch einmal in deinem Assistenten."
}
},
"dashboard": {
+7
View File
@@ -471,6 +471,13 @@
"title": "Set up a second factor",
"body": "Your administrator requires a second factor on this account. Add an authenticator app or a security key to continue.",
"signOut": "Sign out"
},
"confirmAccess": {
"title": "Confirm it is you",
"body": "An assistant is asking to connect to your HealthLog data. Confirm it is you, then you will be taken back to decide whether to allow it.",
"action": "Confirm",
"failed": "That did not work. Please try again.",
"nothingToConfirm": "There is nothing to confirm here. Start the connection again from your assistant."
}
},
"dashboard": {
+7
View File
@@ -471,6 +471,13 @@
"title": "Configurar un segundo factor",
"body": "Tu administrador exige un segundo factor en esta cuenta. Añade una app de autenticación o una llave de seguridad para continuar.",
"signOut": "Cerrar sesión"
},
"confirmAccess": {
"title": "Confirma que eres tú",
"body": "Un asistente quiere conectarse a tus datos de HealthLog. Confirma que eres tú y después decidirás si lo permites.",
"action": "Confirmar",
"failed": "No ha funcionado. Inténtalo de nuevo.",
"nothingToConfirm": "Aquí no hay nada que confirmar. Vuelve a iniciar la conexión desde tu asistente."
}
},
"dashboard": {
+7
View File
@@ -471,6 +471,13 @@
"title": "Configurer un second facteur",
"body": "Votre administrateur exige un second facteur sur ce compte. Ajoutez une application d'authentification ou une clé de sécurité pour continuer.",
"signOut": "Se déconnecter"
},
"confirmAccess": {
"title": "Confirmez que c'est bien vous",
"body": "Un assistant demande à se connecter à vos données HealthLog. Confirmez que c'est bien vous, puis vous déciderez si vous l'autorisez.",
"action": "Confirmer",
"failed": "Cela n'a pas fonctionné. Veuillez réessayer.",
"nothingToConfirm": "Il n'y a rien à confirmer ici. Relancez la connexion depuis votre assistant."
}
},
"dashboard": {
+7
View File
@@ -471,6 +471,13 @@
"title": "Configura un secondo fattore",
"body": "Il tuo amministratore richiede un secondo fattore su questo account. Aggiungi un'app di autenticazione o una chiave di sicurezza per continuare.",
"signOut": "Esci"
},
"confirmAccess": {
"title": "Conferma che sei tu",
"body": "Un assistente chiede di collegarsi ai tuoi dati HealthLog. Conferma che sei tu, poi deciderai se consentirlo.",
"action": "Conferma",
"failed": "Non ha funzionato. Riprova.",
"nothingToConfirm": "Qui non c'è nulla da confermare. Avvia di nuovo la connessione dal tuo assistente."
}
},
"dashboard": {
+7
View File
@@ -471,6 +471,13 @@
"title": "2차 인증 수단 설정",
"body": "관리자가 이 계정에 2차 인증 수단을 요구해요. 인증 앱이나 보안 키를 추가하고 계속해 주세요.",
"signOut": "로그아웃"
},
"confirmAccess": {
"title": "본인인지 확인해 주세요",
"body": "어시스턴트가 HealthLog 데이터에 연결하려고 해요. 본인인지 확인하면 허용할지 정하는 화면으로 돌아가요.",
"action": "확인",
"failed": "확인하지 못했어요. 다시 시도해 주세요.",
"nothingToConfirm": "여기에서 확인할 것이 없어요. 어시스턴트에서 연결을 다시 시작해 주세요."
}
},
"dashboard": {
+7
View File
@@ -471,6 +471,13 @@
"title": "Skonfiguruj drugi składnik",
"body": "Administrator wymaga drugiego składnika na tym koncie. Dodaj aplikację uwierzytelniającą lub klucz bezpieczeństwa, aby kontynuować.",
"signOut": "Wyloguj się"
},
"confirmAccess": {
"title": "Potwierdź, że to Ty",
"body": "Asystent chce połączyć się z Twoimi danymi w HealthLog. Potwierdź, że to Ty, a potem zdecydujesz, czy na to pozwolić.",
"action": "Potwierdź",
"failed": "Nie udało się. Spróbuj ponownie.",
"nothingToConfirm": "Nie ma tu nic do potwierdzenia. Rozpocznij połączenie ponownie w swoim asystencie."
}
},
"dashboard": {