diff --git a/src/PostIt.Tests/SettingsLoadTests.cs b/src/PostIt.Tests/SettingsLoadTests.cs index c983cff2..a9dd01d4 100644 --- a/src/PostIt.Tests/SettingsLoadTests.cs +++ b/src/PostIt.Tests/SettingsLoadTests.cs @@ -90,9 +90,9 @@ public class SettingsLoadTests { bool flip = ((workerId + i) & 1) == 0; settings.DarkMode = flip; - settings.Authentication.RedirectUri = flip - ? global::AuthenticationSettings.DefaultDesktopRedirectUri - : PostIt.ViewModels.Settings.DefaultLoopbackRedirectUri; + settings.Authentication.RedirectUri = + global::AuthenticationSettings.DefaultDesktopRedirectUri; + settings.BusinessApiUrl = flip ? "https://a.example.test/api/v1/" : "https://b.example.test/api/v1/"; diff --git a/src/PostIt/PostIt/ViewModels/Settings.cs b/src/PostIt/PostIt/ViewModels/Settings.cs index 1cbf5b08..98085f0c 100644 --- a/src/PostIt/PostIt/ViewModels/Settings.cs +++ b/src/PostIt/PostIt/ViewModels/Settings.cs @@ -17,20 +17,6 @@ public partial class Settings : ViewModelBase { const string SettingsFileName = "postit-settings.json"; - /// - /// Legacy loopback redirect URI. The post-2026.6 production flow - /// uses the custom URI scheme ( - /// on desktop, on Android) so the - /// OS hands the callback to the running instance without a TCP - /// listener. The loopback constant stays here so test fixtures - /// (which spin up an in-process OidcStubAuthority) keep working, - /// but it is no longer used as a default anywhere in production. - /// If you are still pointing your production postit-settings.json - /// at this URI, switch to postit://callback and remove the - /// matching entry from the Yavsc.Org server's allowed redirect URIs. - /// - public const string DefaultLoopbackRedirectUri = "http://127.0.0.1:7890/"; - /// /// Redirect URI used by the Android app. The corresponding IntentFilter /// in PostIt.Android/Properties/AndroidManifest.xml must match.