Hi Mr Edge,
I apologize if I caused any confusion. But the steps to configure an App Registration in Azure for the purpose of OAuth2 authentication are the following:
Sign in to the Azure portal (https://portal.azure.com).
Navigate to the Azure Active Directory (AAD) service by clicking on "Azure Active Directory" in the left-hand menu.
Click on "App registrations" to view the list of registered applications.
Click on the "New registration" button to create a new App Registration.
Provide a name for your application and choose the appropriate account type (single tenant or multi-tenant) based on your requirements.
For the "Redirect URI" field, specify the URI where the authorization server will send the user back to your application after authentication. This should be the URL of your WebAPI Core application.
Click on "Register" to create the App Registration.
Once the registration is complete, you'll be redirected to the App Registration overview page. Here, note down the "Application (client) ID" value, as this will be your client ID.
In the left-hand menu, click on "Certificates & secrets".
Under the "Client secrets" section, click on the "New client secret" button.
Enter a description for the client secret and choose an expiration option. Click on "Add" to generate the client secret.
After the client secret is generated, make sure to note it down, as this will be your client secret.
When you reached this point, you have successfully created an App Registration and obtained the client ID and client secret, which are required for your OAuth2 authentication flow. These credentials will be used to authenticate your WebAPI Core application with Azure AD.
Be aware that the above steps provide a basic setup for OAuth2 authentication using an App Registration. Depending on your specific requirements, you may need to configure additional settings, such as API permissions, user consent, and access control, to align with your application's functionality and security needs.
I hope these steps will help you with your issue?