pn.state.headers.get("X-Ms-Client-Principal-Name") stopped working

Dear Community,

I manage an Azure App Service that handles requests from authenticated users within our subscription. Until recently, everything was functioning seamlessly. However, I’ve encountered an issue where the emails that typically appear in the X-MS-CLIENT-PRINCIPAL-NAME header have suddenly disappeared.

pn.state.headers.get("X-Ms-Client-Principal-Name")

Has anyone else faced this problem? If so, could you please share any potential workarounds?

Thank you,

Sergey

Did you have a resolution to this? I am encountering the same issue. Unsure when it started unfortunately.

Issue with Easy Auth on Azure (perhaps some secrets have expired).

Solution:

  1. I removed Identity provider under Authentication settings of the App Service (Web App) on Azure.
  2. I recreated a new one.
  3. It helped.

Much appreciated! Will try that out.