From 84b77d99f67f18ba1657e9b205bb6efd0469b4d1 Mon Sep 17 00:00:00 2001 From: Kawa Date: Thu, 11 Jun 2026 11:12:31 +0200 Subject: [PATCH] Fixed : Certificates arent stored properly app-side when creating new profiles --- Components/Pages/Profiles.razor | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Components/Pages/Profiles.razor b/Components/Pages/Profiles.razor index 4149ce1..cf665fb 100644 --- a/Components/Pages/Profiles.razor +++ b/Components/Pages/Profiles.razor @@ -393,7 +393,10 @@ if (_editing == null) { - _form.Id = Guid.NewGuid().ToString(); + // Keep the Id assigned by the TenantProfile constructor. "Register app" may have + // already provisioned the cert and stored it on disk under this Id; reassigning a + // fresh Guid here would orphan that cert file and make the UI re-prompt for upload. + if (string.IsNullOrEmpty(_form.Id)) _form.Id = Guid.NewGuid().ToString(); _profiles.Add(_form); } else