Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Fixes for use with Microsoft Graph #979
Conversation
A quote from the Microsoft documentation at https://docs.microsoft.com/en-us/graph/auth-v2-service#endpoint-considerations
So in this PR I'm evidently using the Azure AD endpoint |
With these changes, it is possible to use Microsoft Graph to upload/convert/delete a file, following https://medium.com/medialesson/convert-files-to-pdf-using-microsoft-graph-azure-functions-20bc84d2adc4
getAccessTokenEndpoint = MSFT_LOGIN_URL + tenant + OAUTH_2 + getEndpointVersionPath() + "/token";
For it to work for me, I have to have an empty EndpointVersionPath.
It is also necessary to pass a resource, to get the audience claim correct. I have hard coded this, but if you process this PR, you'll want to handle this differently.