Users stuck in AAD authentication redirect loop when SWA is embedded in Sharepoint site

C McC 0 Reputation points
2023-06-29T21:28:39.58+00:00

I have configured AAD as a custom identity provider for my Static Web App via [https://learn.microsoft.com/en-us/azure/static-web-apps/authentication-custom?tabs=aad%2Cinvitations](https://learn.microsoft.com/en-us/azure/static-web-apps/authentication-custom?tabs=aad%2Cinvitations"Opens in a new window; external."). I have granted Admin Consent, but even though the application has User.read, my users appear to be stuck in an authentication redirect loop. The SWA is embedded in a Sharepoint Online site. Users are able to successfully authenticate and use the site when they visit it directly, but it enters a redirect loop when using it embedded.

Microsoft 365 and Office | SharePoint | For business | Windows
Azure Static Web Apps
Azure Static Web Apps
An Azure service that provides streamlined full-stack web app development.
1,178 questions
Microsoft Security | Microsoft Entra | Microsoft Entra ID
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.