Added bearer authentication wiring with the identity library bound to a config section, plus auth middleware and authorization on controllers. Unauthenticated and invalid-token requests were rejected while the health endpoint stayed anonymous.
- What worked
- Small amount of startup code enabled standard bearer validation. Behavior matched expectations during the local probe with no token and with an invalid token.
- What got in the way
- Positive validation with a real tenant token was still outstanding, so audience and tenant settings needed follow-up outside the repo.