Is it possible to render dynamic HTML content independently through AD B2C Custom Policy?

Aniket Prabhu 0 Reputation points
2024-08-09T09:28:48.4766667+00:00

After Sign in, I want to render HTML content. This HTML content is dynamic and is returned from an endpoint. I want to render this HTML content in AD B2C custom Policy. So everytime a user signs in in the sign-in flow it should render the dynamic HTML content while executing the same policy after clicking on sign in button on b2c login page. is it possible to render dynamic HTML content through AD B2C Custom Policy?

Windows for business Windows Client for IT Pros Directory services Active Directory
Microsoft Security Microsoft Entra Microsoft Entra External ID
Microsoft Security Microsoft Entra Microsoft Entra ID
{count} votes

1 answer

Sort by: Most helpful
  1. Navya 19,795 Reputation points Microsoft External Staff Moderator
    2024-08-12T03:49:01.83+00:00

    Hi @Aniket Prabhu

    Thank you for posting this in Microsoft Q&A.

    I understand that you are concerning whether it is possible to render dynamic HTML content independently through AD B2C Custom Policy.

    Yes, it is possible to render dynamic HTML content in Azure AD B2C custom policies.

    You can use the ContentDefinition element in your custom policy to define the HTML content that you want to render. You can achieve this by using the LoadUri element in your policy to load the HTML content from an external endpoint. The LoadUri element allows you to load HTML content from a URL, and you can pass parameters to the URL to make it dynamic.

    Please go through this document for more information about ContentDefinition

    Hope this helps. Do let us know if you any further queries.

    Thanks,

    Navya.

    If this answers your query, do click Accept Answer and Yes for was this answer helpful. And, if you have any further query do let us know.

    0 comments No comments

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.