Require authentication and authorization for all endpoints if enabled by config.
Require authentication and authorization for all endpoints if enabled by config.