Can I use GetAzureADAppOnlyAuthenticatedContext in Azure Functions?

Highlighted
Occasional Contributor

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;

  1. Is it possible to use GetAzureADAppOnlyAuthenticatedContext from an Azure Function and is there any guidance if it is?
  2. What is the recommended authentication model from Azure functions to SharePoint?

 

Thanks

 

Jeremy

 

2 Replies
Highlighted
For 2: have you considered to use the "classic" SPO App Only?
Highlighted

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