Require and handle basic auth credentials