This unit demonstrates how to register a single-page application.
Create the App Registration
Sign in to the Microsoft Entra admin center with appropriate permissions.
Navigate to Identity, then Applications, then App registrations.
Select New registration.
Enter a name for the application.
Select supported account types.
Do not configure a redirect URI yet.
Select Register.
Important Record the Application (client) ID and Directory (tenant) ID.
Configure the Single-Page Application Platform
Open the app registration.
Select Authentication.
Select Add a platform.
Choose Single-page application.
Enter a redirect URI such as http://localhost:3000/.
Do not enable implicit grant settings.
Select Save.
SPAs automatically use authorization code flow with PKCE, which is more secure than implicit flow.