def __parseAuthHeader(string):
  """
  Returns the token given an input of 'Bearer <token>'
  """
  components = string.split(' ')
  if len(components) != 2:
    raise ValueError('Invalid authorization header.')

  return components[1]