Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

using AD authenticaiton with correct user id and pwd, but getting the error unable to find authentication policy #45

Open
nshehzad opened this issue Jun 18, 2024 · 1 comment

Comments

@nshehzad
Copy link

nshehzad commented Jun 18, 2024

using this code below, but getting error unable to find authentication policy. Please see screen attached

using Data8.PowerPlatform.Dataverse.Client;
using Microsoft.PowerPlatform.Dataverse.Client;
using Microsoft.Xrm.Sdk;
 
var onPremAD = new OnPremiseClient("https://crm.contoso.com/org/XRMServices/2011/Organization.svc", "AD\\username", "password!");
 
CreateRecord(onPremIfd);
CreateRecord(onPremAD);
CreateRecord(online);

void CreateRecord(IOrganizationService svc)
{
	var entity = new Entity("account")
	{
		["name"] = "Data8"
	};

	entity.Id = svc.Create(entity);
}

image

@MarkMpn
Copy link
Contributor

MarkMpn commented Jun 18, 2024

The library can't find the details in the WSDL document describing how it should authenticate to the service. I haven't seen this happen on a real server before so I'm not sure what the ultimate fix will be, but to start with it would be useful to see the contents of the WSDL file - start from https://crm.contoso.com/org/XrmServices/2011/Organization.svc?wsdl&sdkversion=8.0.0.0 and also follow any links to imported WSDL documents, normally https://crm.contoso.com/org/XrmServices/2011/Organization.svc?wsdl=wsdl0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants