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

Integration broken because disco.crm.dynamics.com is returning 404 #123

Closed
medrawi opened this issue Mar 26, 2023 · 3 comments
Closed

Integration broken because disco.crm.dynamics.com is returning 404 #123

medrawi opened this issue Mar 26, 2023 · 3 comments
Labels

Comments

@medrawi
Copy link

medrawi commented Mar 26, 2023

We have an integration with MSD using your repo https://github.com/AlexaCRM/php-crm-toolkit and things used to work just fine

Recently we found that the integration is broken because it is unable to fetch the wsdl info from this URL https://disco.crm.dynamics.com/XRMServices/2011/Discovery.svc?wsdl

By investigating I found that in your repo, at the Settings.php file/class, at the constructor, You have the line below:
$this->discoveryUrl = sprintf( '%s://disco.%s.dynamics.com/XRMServices/2011/Discovery.svc', $serverUrlParts['scheme'], $crmRegionId );

I did a modification to use the account we are connecting to in generating this URL and replace the "disco" pattern by the account's initial pattern, It seems it is returning the wsdl info but the integration is still broken and unable to authenticate.

Could you help me with this?

@georged
Copy link
Contributor

georged commented Mar 27, 2023

@medrawi discovery service has been deprecated by Microsoft long time ago and it's no longer in use (discoveryUrl is built but never used). Please update your code base to make sure you're using the latest version. Also keep in mind that username/password authentication no longer works either, you have to use app id / secret.

@georged georged closed this as not planned Won't fix, can't repro, duplicate, stale Mar 27, 2023
@medrawi
Copy link
Author

medrawi commented Mar 27, 2023

@georged Thanks for your response.
This Repo still uses username and password authentication, Any plans to update it to use App ID/Secret?

@georged
Copy link
Contributor

georged commented Mar 27, 2023

@medrawi repo has S2S support, not sure what do you mean. Yes, username support is still there for on-premises solutions but you should be using S2S settings https://github.com/AlexaCRM/php-crm-toolkit/blob/master/src/OnlineS2SSecretAuthenticationSettings.php

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

No branches or pull requests

2 participants