Forum Discussion

Chetan40's avatar
Chetan40
Frequent Visitor
4 months ago
Solved

Power BI iframe embedding issue with Microsoft Defender Cloud Apps (MCAS) – repeated sign-in loop

Hi Team,   We are facing an issue while embedding Power BI reports in an iframe after our client organization enabled Microsoft Fabric capacity and integrated Power BI with Microsoft Defender for C...
  • alicegray's avatar
    4 months ago

    Hey Chetan40,

    Here are the answers:

    1. Is MCAS causing the issue? Yes. When MCAS is enabled, the URL changes to https://app.powerbi.com.mcas.ms, and the reverse-proxy intercepts browser authentication, causing login loops in iframes.
    2. Configuration changes needed:
      • Exclude embedded report users from the Conditional Access app control policy
      • Adjust MCAS session policies to target only high-risk scenarios (downloads of sensitive content)
      • Alternatively, use Service Principal tokens for secure server-side embedding
    3. Specific policies to adjust:
      • Conditional Access: Add excluded users/groups from "Use Conditional Access App Control"
      • MCAS Session Policies: Scope to sensitivity-labeled content only, not all Power BI traffic
    4. Recommended approach: Create a tiered strategy with the help of a Power BI consulting firm, maintain MCAS controls for direct Power BI access while excluding embedded users from proxy interception or using token-based embedding.
  • v-achippa's avatar
    v-achippa
    4 months ago

    Hi Chetan40,

     

    Thank you for the response. Yes looks like this behaviour confirms that Microsoft Defender for Cloud Apps session control(reverse proxy) is causing the iframe login loop.

    • Excluding the embedding users from the Conditional Access policy should resolve the issue, as it avoids the .mcas.ms rewrite and allows authentication to complete inside the iframe.
    • No additional MCAS configuration is required, just make sure no other Conditional Access policies are still applying session control.

     

    Thanks and regards,

    Anjan Kumar Chippa