Allow authentication header to not have to specify 'token=' key.

Fixes: https://github.com/rails/rails/issues/17108.