Skip to content

Commit ac01b61

Browse files
authored
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
1 parent 03fa4d1 commit ac01b61

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/GeneralTools/DataverseClient/Client/ConnectionService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1471,7 +1471,7 @@ private async Task<IOrganizationService> DoDirectLoginAsync(bool IsOnPrem = fals
14711471

14721472
IOrganizationService dvService = null;
14731473
Uri OrgWorkingURI = null;
1474-
if (!IsOnPrem || _eAuthType == AuthenticationType.OAuth) // Use this even if its onPrem, when auth type == oauth.
1474+
if (!IsOnPrem)
14751475
{
14761476
OrgWorkingURI = new Uri(string.Format(SoapOrgUriFormat, _targetInstanceUriToConnectTo.Scheme, _targetInstanceUriToConnectTo.DnsSafeHost));
14771477
}

0 commit comments

Comments
 (0)