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