class Doorkeeper::OAuth::Token

def from_basic_authorization(request)

def from_basic_authorization(request)
  pattern = /^Basic /i
  header = request.authorization
  token_from_basic_header(header, pattern) if match?(header, pattern)
end