Skip to content

Commit a38b8a4

Browse files
authored
Merge pull request #1 from korytiak/korytiak-on-prem
Update ConnectionService.cs to allow on-prem ports with OAuth
2 parents 03fa4d1 + ac01b61 commit a38b8a4

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)