From ac01b61c11fcde9fb759b24c9f464f49af3f5a94 Mon Sep 17 00:00:00 2001 From: korytiak <78151424+korytiak@users.noreply.github.com> Date: Fri, 11 Jul 2025 22:25:32 +0200 Subject: [PATCH] Update ConnectionService.cs to allow on-prem ports with OAuth, otherwise options for on-prem OAuth service client are very limited On-prem deployment very often use non-standard ports like 444 --- src/GeneralTools/DataverseClient/Client/ConnectionService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/GeneralTools/DataverseClient/Client/ConnectionService.cs b/src/GeneralTools/DataverseClient/Client/ConnectionService.cs index 23c50b6..820af65 100644 --- a/src/GeneralTools/DataverseClient/Client/ConnectionService.cs +++ b/src/GeneralTools/DataverseClient/Client/ConnectionService.cs @@ -1471,7 +1471,7 @@ private async Task DoDirectLoginAsync(bool IsOnPrem = fals IOrganizationService dvService = null; Uri OrgWorkingURI = null; - if (!IsOnPrem || _eAuthType == AuthenticationType.OAuth) // Use this even if its onPrem, when auth type == oauth. + if (!IsOnPrem) { OrgWorkingURI = new Uri(string.Format(SoapOrgUriFormat, _targetInstanceUriToConnectTo.Scheme, _targetInstanceUriToConnectTo.DnsSafeHost)); }