Application Registration
Steps to Register an Application in Azure AD and Obtain Client ID and Client Secret:
Navigate to Azure Active Directory
In the left-hand menu, select Azure Active Directory. If it's not visible, you can search for it using the search bar.
Access App Registrations:
In the Azure Active Directory pane under Manage, select App registrations.
Register a New Application:
Click on + New registration at the top of the page.
Fill in Application Details:
Name: Enter a name for your application. This name will be used to identify your application in Azure AD.
Supported account types: Choose the type of accounts that can use this application. For most cases, you can select Accounts in this organizational directory only (Single tenant).
Redirect URI (optional): Enter a redirect URI if your application requires it (e.g., for OAuth2 authentication). For now, this can be left empty or filled based on your application needs.
Complete Registration:
Click Register to create the application.
Obtain the Application (Client) ID:
After registration, you will be redirected to the application's overview page. Here, you will find the Application (client) ID. Copy this value; it is used to identify your application.
Create a Client Secret:
In the application’s settings, select Certificates & secrets from the left-hand menu.
Under the Client secrets section, click + New client secret.
Description: Enter a description for the client secret (e.g., "My App Secret").
Expires: Select an expiration period for the secret (e.g., 1 year, 2 years, or never).
Click Add to create the secret.
Important: Copy the value of the client secret immediately after creating it. This is your Client Secret. You will not be able to retrieve it again from the portal.