class OAuth2::Authenticator

def apply_basic_auth(params)

it is not already set in the params.
Adds an `Authorization` header with Basic Auth credentials if and only if
def apply_basic_auth(params)
  headers = params.fetch(:headers, {})
  headers = basic_auth_header.merge(headers)
  params.merge(headers: headers)
end