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?

Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
6,547 questions
Microsoft Entra External ID
Microsoft Entra External ID
A modern identity solution for securing access to customer, citizen and partner-facing apps and services. It is the converged platform of Azure AD External Identities B2B and B2C. Replaces Azure Active Directory External Identities.
2,884 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
21,795 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Navya 10,955 Reputation points Microsoft Vendor
    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.