Add basic auth middleware to core. Uncommon to change.