...
Configuration
Azure AD Setup
Define API App Role
Before external systems can be granted access, an App Role must be defined in the API
Create App Registration.
- Name:
PartnerPortal-External-{CompanyName} - Account type: Single tenant
Go to:
Microsoft Entra ID → App registrations
Open EGU.PartnerPortal.ApiService
Navigate to App roles → Create app role.
Configure the role:
Field Value Display name External System Access Allowed member types Applications Value ExternalSystem.Access Description Allows external systems to access turnaround report data Save the role.
Create External System App Registration
Create a separate application registration for each external company.
Go to:
Microsoft Entra ID → App registrations
Select New registration
Configuration:
Setting Value Name {CompanyName}-PartnerPortal-Access Supported account types Accounts in this organizational directory only Redirect URI Leave blank
Generate Client Secret
Generate Client Secret
Open the newly created PartnerPortal-External-{CompanyName} app.
Navigate to Certificates & secrets.
Click New client secret
.
Copy the secret value immediately and store it securely.
⚠️ The secret value cannot be viewed again after creation.
Never commit secrets to source control.
Assign Permissions
- Add permission:
EGU.PartnerPortal.ApiService - Select:
ExternalSystem.Access - Grant admin consent
- Add permission:
Company Mapping (API side configuration)
{ "ExternalCompanies": { "Ravdex": { "AppId": "1f018c75-2ea9-4d46-a4f1-a45d2d47d043", "CompanyNumber": "YOUR_COMPANY_NUMBER", "Name": "Ravdex" } } }