Forum Discussion
Jeremy Hancock
Oct 23, 2017Brass Contributor
Can I use GetAzureADAppOnlyAuthenticatedContext in Azure Functions?
I am trying out using SharePoint webhooks with Azure Functions. I have the webhook functioning okay, but looking at the authentication options for calling back into SharePoint, I would like to be able to use the GetAzureADAppOnlyAuthenticatedContext from the function.
I have watched the webcast on Authentication Manager;
https://dev.office.com/blogs/Introduction-to-authentication-manager-in-pnp-core-library
I have 2 questions;
- Is it possible to use GetAzureADAppOnlyAuthenticatedContext from an Azure Function and is there any guidance if it is?
- What is the recommended authentication model from Azure functions to SharePoint?
Thanks
Jeremy
2 Replies
- For 2: have you considered to use the "classic" SPO App Only?
- Jeremy HancockBrass Contributor
Hi, thanks for the response.
Yes, I am planning to try that, but I was hoping to work out whether the new Azure AD methods are an option in this scenario.
Thanks
Jeremy