Skip to main content

Auth: hbf-reports

How this service handles authentication. Full flows: docs/architecture/auth-flows.md

Tokens This Service Accepts

Token typeWhere validatedGuard / middleware
User JWThbf-core /users/meHBFGuard

Tokens This Service Sends

CallingToken usedHow attached
hbf-coreCORE_TOKENAuthorization: Bearer <CORE_TOKEN> header

Tokens This Service Issues

None.

Roles / Scopes Enforced

Endpoint patternRequired role
Report endpointsHBF_ORG_ADMIN (via AdminOrgRoleGuard)
Export endpointsHBF_ORG_ADMIN + export permission (via ExportGuard)

Auth Notes

  • HBFGuard delegates token validation to hbf-core by calling /users/me.
  • AdminOrgRoleGuard requires the HBF_ORG_ADMIN role for all report access.
  • ExportGuard adds an additional permission check on top of the admin role, specific to export operations.
  • Config: CORE_URL, CORE_TOKEN.