Can we directly call Microsoft server API's by creating custom controls from UI ?

JS 1 Reputation point
2025-01-30T13:08:12.3133333+00:00

We have an JavaScript, HTML based application integrated with custom policies of Azure Active Directory B2C. Currently we are relying on Microsoft template and modifying the elements from Script side in UI. As per Current implementation we are triggering the Microsoft UI events from our UI side reading Id or Class of the DOM element lets say a button to execute the functionality and load next screen. Here our question is "Can we create a custom DOM elements at our UI end and consume the Microsoft server API's directly to execute the flow" ? Do we have feasibility and options to do this. Please suggest. Waiting for your prompt response. Thank you!

Microsoft Identity Manager
Microsoft Identity Manager
A family of Microsoft products that manage a user's digital identity using identity synchronization, certificate management, and user provisioning.
748 questions
Azure API Management
Azure API Management
An Azure service that provides a hybrid, multi-cloud management platform for APIs.
2,278 questions
Azure Storage Accounts
Azure Storage Accounts
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
3,344 questions
Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
6,832 questions
Active Directory Federation Services
Active Directory Federation Services
An Active Directory technology that provides single-sign-on functionality by securely sharing digital identity and entitlement rights across security and enterprise boundaries.
1,289 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Martin Brandl 0 Reputation points MVP
    2025-01-30T13:14:12.2+00:00

    As of my understanding, You cannot fully replace the B2C-hosted UI with your own HTML form elements and call the internal “next-step” endpoints. B2C does not expose a “headless” sign-in API.

    You can extensively customize the appearance of the B2C pages via Page Layouts and custom CSS/JS. This is the officially supported route for advanced “Custom Policy” sign-up or sign-in flows

    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.