Authentication is not working when Function App is deployed in Azure. In local it works fine.

Mondal, Ram Prosad 5 Reputation points
2024-05-16T12:36:05.1033333+00:00

Hi

I am working on azure function app which is having http trigger functions. These functions are called from static web app developed using react, React front end uses MSAL authentication template for azure AAD authentication. In function app, I am having below code for adding authentication.

User's image

It works fine in local but when deployed to azure. it gives run time error "internal server error". Will appreciate any help please. I am new to azure function app and AAD authentication.

Regards,

Ram

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