Setting redirect URIs
After authentication, the user will be redirected to Redirect URI by the Microsoft identity platform. The security tokens will also be sent to this URL. The redirect URI will be a public endpoint in production scenarios, such as https://packtpub.com/auth-response. In development scenarios, it's common to also add the endpoint where the app is running locally, such as https://127.0.0.1/auth-response or http://localhost.com/auth-response.
Redirect URIs can be added or modified inside the Azure portal, using PowerShell and the CLI, or the Graph API. In the Azure portal, the redirect URI is in the platform configuration inside the App Registration Authentication settings. For web and single-page applications, it is required to specify the URI manually. For other platforms, such as mobile or desktop applications, you can select a redirect URI that is generated automatically when other settings for the app are configured.
Important Note
In Chapter 3, Application...