OAuth Configuration
This documentation provides the steps required to configure OAuth settings in the Angular config.json and the ASP.NET Core appsettings.json files for integration with Azure Active Directory (AAD).
Angular Configuration
To configure OAuth in your Angular application, modify the config.json
file as follows:
authType: Set this to
"OAUTH"
to enable OAuth authentication.
clientId: Enter the Client ID from your Azure AD app registration.
authority: Specify the authority URL using your Azure AD tenant ID.
redirectUri: Set this to the callback URI configured in Azure AD for your application.
ASP.NET Core Configuration
For the backend, configure the following settings in the appsettings.json
file:
UserStoreType: Set this to
"OAUTH"
to indicate the use of OAuth for user authentication.
AzureAd: Configure the Azure AD details within this section.
App Registration in Microsoft Entra ID
To set up an app registration in Azure AD, follow the instructions provided in the Microsoft documentation:
Register app in Azure AD
Once the app registration is complete, the following app roles need to be created:
Administrator
Reviewer
After creating the app roles, assign users to one of the following roles based on their responsibilities:
Administrator
Reviewer
Last updated