Configuring Microsoft Entra ID Authentication
Use Microsoft Entra ID (Azure) to authenticate users who access LicensePredictor.
Requirements
- Configured Authentication Settings with
Providerset toAzureAd - Microsoft Entra ID (Azure) Credentials
- Tenant ID — The directory (tenant) identifier from Microsoft Entra ID
- Client ID — The application (client) ID from your Entra app registration
- Client Secret — The secret generated for the app (store securely)
Configuring Microsoft Entra ID Authentication
Follow these instructions to configure Microsoft Entra ID authentication.
Step 1: Open the appsettings.json file
-
Navigate to the LicensePredictor directory.
By default, this is located at:
C:\Program Files\OpeniT\LicensePredictor -
Open the
appsettings.jsonfile.
Step 2: Configure the Microsoft Entra ID Authentication Settings
-
Locate the
AzureAdsection underAuthenticationin theappsettings.jsonfile. -
Configure the following settings:
-
Instance— Specify the Microsoft identity platform base address. The default value ishttps://login.microsoftonline.com/. -
TenantId— Enter the directory (tenant) ID from Microsoft Entra ID. -
ClientId— Enter the application (client) ID from the Microsoft Entra ID app registration. -
ClientSecret— Enter the client secret generated for the registered application.NoteThe client secret is required when Microsoft Entra ID authentication is enabled. Store sensitive credentials securely using a secret store or environment override when applicable.
Example: appsettings.json"AzureAd": {
"Instance": "https://login.microsoftonline.com/",
"TenantId": "a1b2c3d4-5678-90ab-cdef-1234567890ab",
"ClientId": "9f8e7d6c-5b4a-3210-fedc-ba0987654321",
"ClientSecret": "V~*************************************************", -
-
Save the changes.
Step 3: Restart the LicensePredictor Service
-
Open Task Manager.
-
Under Services, restart the OpeniTLicensePredictor service.