Thanks for reaching out.
The "Privacy statement URL" in Azure Active Directory - App Registration under Branding & Properties is the terms of service and privacy statement which are surfaced to users through the user consent experience when user signed in.
To display a policy acceptance page before the home page of your web application, you will need to construct your own controller and view. You can create a new controller and view that displays the policy acceptance page and then redirect the user to the home page after they accept the policy.
[Authorize]
public class PolicyController : Controller
{
public IActionResult Accept()
{
// Display the policy acceptance page
return View();
}
}
In this example, the [Authorize] attribute is added to the PolicyController class to ensure that only authenticated users can access the Accept action. If an unauthenticated user tries to access the Accept action, they will be redirected to the login page.
Hope this will help.
Thanks,
Shweta
Please remember to "Accept Answer" if answer helped you.