Skip to content

Commit

Permalink
Fixed error trying to create new connections from SDK login control
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkMpn committed Mar 10, 2022
1 parent 380c8db commit cb4650f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions MarkMpn.Sql4Cds/PluginControl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,9 @@ private IOrganizationService GetNewServiceClient(ConnectionDetail con)
{
var svc = con.ServiceClient;

if (con.IsFromSdkLoginCtrl)
return svc;

if (svc.ActiveAuthenticationType == Microsoft.Xrm.Tooling.Connector.AuthenticationType.OAuth)
return svc.Clone();

Expand Down

0 comments on commit cb4650f

Please sign in to comment.