Azure Function with Transparent Microsoft Authentication?

Learn SharePoint 0 Reputation points
2024-04-24T12:55:25.2133333+00:00

I have a SharePoint Online page with some custom JavaScript that calls an Azure function protected by Microsoft App Authentication. The JavaScript runs fetch('someGetRequestFromAzureFunction') and the get request gets redirected to login.microsoft.com and fails. I resorted to using the MSAL browser library with some silent sso, but its very complex. I am also forced to use the SPA oauth flow, instead of the back-end oauth flow, which is less than ideal. Can someone look over my shoulder and verify these steps are correct?

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,302 questions
0 comments No comments
{count} votes