Check authentication scheme in Basic auth

`authenticate_with_http_basic` and its families should check the
authentication schema is "Basic".

Different schema, such as OAuth2 Bearer should be rejected by basic auth, but 
it was passing as the test shows.

This fixes #10257.