API Authentication
Summary
The portal client forwards its session credential on non-login calls. The gateway forwards request headers but does not authenticate requests. Recruitment registers bearer-token validation; its minimal API groups do not require authenticated users. HR Operations requires authentication at controller level.
Audience
Developers, QA, support, security reviewers, and solution architects.
Authentication flow
Boundary findings
| Boundary | Verified behavior |
|---|---|
| Portal client | Attaches the stored portal credential when available and handles unauthorized responses by clearing/redirecting the session |
| Gateway | Copies headers and records routing metadata; no authentication middleware was found |
| Extracted Recruitment | Registers validation for configured issuers, audiences, signing material, lifetime, name, and role claims |
| Recruitment minimal APIs | No required authenticated-user metadata is applied |
| Monolith Recruitment compatibility | Internal lifecycle actions require authentication; public offer actions explicitly allow anonymous access |
| HR Operations | Controller-level authentication applies to all exit and task actions |
| Employee direct APIs | Recruitment does not forward a user credential; direct endpoint group has no required authentication metadata |
| Public offer links | Link possession identifies the offer; it is not user authentication |
No credential values, key material, internal identity addresses, or example tokens are included in this documentation.
Requires confirmation
- Network controls protecting direct Recruitment and Employee service exposure.
- Whether gateway authentication exists outside the inspected application pipeline.
- Required expiry, replay, revocation, and rotation rules for public offer links.
- Whether service-to-service employee calls require workload authentication in production.
Source References
UI/salary-ui/packages/api-client/src/axiosConfig.tsmicroservices/src/gateway-api/Program.csmicroservices/src/recruitment-service/Program.csmicroservices/src/recruitment-service/Api/Policies.csControllers/RecruitmentController.csControllers/HrOperationsController.csmicroservices/src/recruitment-service/Infrastructure/EmployeeServiceClient.csmicroservices/src/employee-service/Api/EmployeeDirectEndpoints.cs
Related Articles
See Also
Keywords
- Credential forwarding
- Public capability link
- Required authentication
Revision Information
- Status: Draft
- Last reviewed: 2026-07-20
- Review cycle: Quarterly