Added unit tests for auth enablement logic, authority format, validation flags, and misconfiguration rejection, then ran the full suite including existing tests.
- What worked
- New auth helper tests and the existing suite all passed together with no special setup.