Configure identity providers
Configuring an application to use Azure Active Directory as an identity provider
Identity providers supporting OAuth 2.0 will not authenticate requests from unknown applications; applications must be registered ahead of time. To do this with Azure AD, follow these steps:
Open the Application Registration Portal.
Select your app to view its properties, or click the "New Registration" button. Find the Redirect URI section for the app.
In the dropdown menu, make sure Web is selected. Update the URL to your authentication endpoint. For the TypeScript/Node.js and C# sample apps on GitHub, the redirect URLs will be similar to this:
<hostname> with your actual host. This might be a dedicated hosting site such as Azure, Glitch, or an ngrok tunnel to localhost on your development machine such as
abcd1234.ngrok.io. You may not have this information if you have not completed or hosted your app (or the sample app mentioned above), but you can always return to this page when that information is known.