class Doorkeeper::OAuth::Token

def from_bearer_authorization(request)

def from_bearer_authorization(request)
  pattern = /^Bearer /i
  header = request.authorization
  token_from_header(header, pattern) if match?(header, pattern)
end