Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Azure Function: authManager.GetAzureADAppOnlyAuthenticatedContext erroring #1568
[X ] Bug
[ X] Office 365 / SharePoint Online
Expected or Desired Behavior
To be able to connect to SharePoint Online using an Office 365 App Only Authentication Token & certificate.
Deployed Azure Function that is using Office 365 App Only Authenticating into SharePoint. Was working OK since last Thursday 1st Feb. Since then when connecting to SharePoint, as it calls
it throws error message "Object reference not set to an instance of an object"
If I run the code locally in Visual Studio, I do not encounter the error message. It only happens after deploying to Azure Functions.
The error message I get is the following
Steps to Reproduce
Create a Office 365 App only token. Give it Full permissions to SharePoint Online.
I have tried using different versions of PNP.
Turns out there has been a change to the Azure Functions version. https://github.com/Azure/azure-functions-host/releases
By downgrading the Azure Function service to version 1.0.1138 it then appears to work again.
Go into your application settings, and where it says FUNCTIONS_EXTENSION_VERSION: ~1 change the version number to 1.0.11388