angular-b2c-sample-app and iframes

Tiago C 20 Reputation points
2025-01-23T15:06:50.4566667+00:00

I have a project that I based on this sample project:

https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/samples/msal-angular-v3-samples/angular-b2c-sample-app

Currently I have the custom policies as intended. Button, redirects to a azure page, finishes w/e the custom policy is, redirects back to the web app.
But now I need to be using said custom policy as an iframe, basically the client requests that there is less one layer of buttons to pressed. Therefore I want the custom policy to be displayed as an iframe, making the web app feel more single page. I have looked around, but can't really find anything detailed enough.

Any help is welcomed :)

Microsoft Security | Microsoft Entra | Other
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Kancharla Saiteja 5,485 Reputation points Microsoft External Staff Moderator
    2025-01-27T08:09:48.4066667+00:00

    Hi @Tiago C
    Thank you for posting your query on Microsoft Q&A.
    I am Saiteja from Q&A will be assisting you with your query.

    Based on your query, here is my understanding: I see you have configured policies with MSAL Angular and would like to use iframe to make the application more single page instead of redirections.

    Here is the Microsoft document that would help you in implementing iframe to make the sign up the sign in simpler and more impactful. This document helps you in achieving the embedded signing using <iframe>HTML which embeds Azure B2C sign in user interface directly into your application.

    I hope this information is helpful. Please feel free to reach out if you have any further questions.

    If the answer is helpful, please click "Accept Answer" and kindly "upvote it". If you have extra questions about this answer, please click "Comment".


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.