Home

Can I use GetAzureADAppOnlyAuthenticatedContext in Azure Functions?

Jeremy Hancock
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
For 2: have you considered to use the "classic" SPO App Only?

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

Related Conversations
Possible to use AD groups in Yammer?
Florian Hein in Yammer on
1 Replies
Native apps SSO on mobile
almennn in Microsoft Intune on
1 Replies
Dual Factor Conditional Access
Stefanie Cortese in Office 365 on
6 Replies
Create survey in Yammer
Deleted in Yammer on
9 Replies
Returning list from 3D array
Paul Danaher in Excel on
17 Replies