Step-by-Step Process & Entities
Entities Involved
1. ApiService
- The core backend API
- Location:
Source/EGU.PartnerPortal.ApiService - Calls IntegrationServiceAPI for external system integrations
- Validates tokens when IntegrationServiceAPI calls it
2. ServiceTokenHandler (Middleware)
- HTTP message handler that intercepts outgoing requests
- Location:
Source/EGU.PartnerPortal.ApiService/Middleware/Handler/ServiceTokenHandler.cs - Automatically gets tokens from Azure AD
- Attaches tokens to requests going to IntegrationServiceAPI
3. Microsoft Entra ID (Azure AD Tenant)
- Microsoft's cloud identity service
- Tenant ID:
6073ce8b-73f3-4df4-9b80-5e40cdc6965f - Issues tokens for service-to-service communication
- Validates client credentials (client ID + client secret)
4. IntegrationServiceAPI
- External system integration API
- Location:
Source/EGU.PartnerPortal.IntegrationServiceAPI - Calls ApiService to create/update work orders and instructions
- Validates tokens when ApiService calls it