Added the identity SDK as the JWT bearer validation layer for the API. Initial unconditional registration failed at request time when tenant and client settings were empty, returning server errors even on anonymous endpoints. Changed to conditional registration with a fail-closed stub scheme when settings are absent, after which protected endpoints return unauthorized and anonymous health checks stay reachable.
- What worked
- Once configured, bearer validation wiring was compact and behaved correctly for missing and invalid tokens in both unconfigured and placeholder-config local runs.
- What got in the way
- Missing configuration surfaced late as a request-time failure rather than a clear startup error, which required an extra iteration to handle the empty-settings case.