You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for your work on this tutorial. I thought a few additions to the readme.md might help others save a many hours of troubleshooting. These are the problems I encountered in order:
Curl was failing out of the box. Modifying the code to the following:
showed the error SSL certificate problem: unable to get local issuer certificate. I had to download cacert.pem to store locally, and update curl.cainfo in php.ini to point to this path.
I kept getting invalid client credentials; after some googling, it appeared that if you have a + in the client secret key, it fails. Once I generated a key without that in, authentication worked, but then I hit another error: Application is not supported for this API version.
apps.dev.microsoft.com offers the ability to create two types of apps: "Converged" and "Azure AD Only". Having successfully worked with the Graph API using PowerShell and an application created in portal.azure.com (which displays under 'Azure AD Only' on apps.dev.microsoft.com) I had assumed this would also work - it did not. It seems then, that the type of application required is of type 'Converged'.
The apps.dev.microsoft.com portal did not appear to allow the specification of a reply URL during the creation process. I had to create the application first and then edit the application manifest file to put "http://localhost" into the replyUrls section.
The text was updated successfully, but these errors were encountered:
Hi,
Thanks for your work on this tutorial. I thought a few additions to the readme.md might help others save a many hours of troubleshooting. These are the problems I encountered in order:
showed the error
SSL certificate problem: unable to get local issuer certificate
. I had to download cacert.pem to store locally, and updatecurl.cainfo
in php.ini to point to this path.I kept getting invalid client credentials; after some googling, it appeared that if you have a
+
in the client secret key, it fails. Once I generated a key without that in, authentication worked, but then I hit another error:Application is not supported for this API version.
apps.dev.microsoft.com offers the ability to create two types of apps: "Converged" and "Azure AD Only". Having successfully worked with the Graph API using PowerShell and an application created in portal.azure.com (which displays under 'Azure AD Only' on apps.dev.microsoft.com) I had assumed this would also work - it did not. It seems then, that the type of application required is of type 'Converged'.
The apps.dev.microsoft.com portal did not appear to allow the specification of a reply URL during the creation process. I had to create the application first and then edit the application manifest file to put "http://localhost" into the
replyUrls
section.The text was updated successfully, but these errors were encountered: