A cloud-based identity and access management service for securing user authentication and resource access
Silent SSO inside iframe getting BrowserAuthError: timed_out
I have a parent application running on localhost:3000 which is using the entra id authentication. Inside the parent application I have embedded child application running on localhost:4000. Both the application are Next JS apps. After authentication from the parent application, I am pulling the email of the user from the session and passing it to the child as a Iframe query parameter.
My child app is registered as Single page application and configured with redirect uri as http://localhost:4000/blank.html.
When my parent app is authenticated and loads the child app passing the email as login it, I have my IframAuth.tsx inside me child which pulls the login hint value and call the ssoSilent({scopes: ["user.read"],loginHint: emaild}). In the network tab I see 200 status code call to the https://login.microsoftonline.com endpoint which calls the blank.html redirect uri. Inside blank.html I see the #code=1.AQcAp.. response as well but after sometime I see the msal throws BrowserAuthError: timed_out error. Please help me with this.