rails/rails — pull request #11346 by tomykaira (2013-07-07 13:45:21+00:00)
Title: 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.