Forum Discussion

Aparnaa_MS's avatar
Aparnaa_MS
Advocate III
3 days ago

Issue with Fabric Apps To-do template

Hi Everyone,

I am using the To-do app template in Fabric Apps. The deployed app opens successfully sometimes, but at other times authentication does not complete and the app remains stuck on the authentication page.

There are no configuration changes between the successful and failed attempts.

Has anyone experienced this intermittent behaviour? Are there any authentication settings, permissions, redirect configurations, or logs that I should check?

Thanks in advance for your help.

3 Replies

  • Hi Aparnaa_MS​ 

    Yes — this is plausible with the current Fabric Apps authentication flow, and I would not assume that an intermittent failure means the app configuration changed.

    For a deployed Fabric App, authentication is handled through Fabric SSO / Microsoft Entra ID. The current Microsoft documentation specifically calls out popup/session-handling issues as things to troubleshoot.

    The most useful diagnostic

    When you get a failed attempt, open DevTools → Console + Network before clicking Sign In and compare it with a successful attempt.

    In particular, look for:

    1. Whether the Fabric authentication popup is actually created.
    2. Whether the popup is immediately closed/blocked.
    3. postMessage or origin-related errors.
    4. Failed requests to the Rayfin/Fabric backend.
    5. 401/403 responses.
    6. Whether the authentication request succeeds but the session never changes to authenticated.
    7. Whether the failed attempt is occurring in a different browser tab/window or after the app has been left open for some time.

    If you see an Entra error such as AADSTS50011, then investigate the redirect URI specifically; Microsoft Entra requires the URI in the authentication request to match a configured URI

     

  • v-saisrao-msft's avatar
    v-saisrao-msft
    Community Support

    Hi Aparnaa_MS​,

    Have you had a chance to review the solution we shared earlier? If the issue persists, feel free to reply so we can help further.

    Thank you.

  • v-saisrao-msft's avatar
    v-saisrao-msft
    Community Support

    Hi Aparnaa_MS​,
    Since the issue is intermittent, please verify the Fabric SSO flow, including the RayfinClient baseUrl/publishableKey, the callback/original tab origin, and that returnOrigin matches the configured allowedRedirectUris; also ensure the SSO popup is triggered by a user action and restart the sign-in flow if it exceeds the documented five-minute timeout. Since Fabric Apps is currently in Preview, these authentication checks are worth verifying.
    Troubleshoot Fabric Apps - Microsoft Fabric | Microsoft Learn
    Configure Fabric SSO authentication for your Fabric app - Microsoft Fabric | Microsoft Learn

    Thank you.