code: def get_auth_basic(self):
          
          username = ''
          password = ''
          auth_header = self.get_header('authorization')
          if auth_header:
              m = re.search(r"^Basic\s+(\S+)$", auth_header, re.I)
              if m:
                  auth_str = Base64.decode(m.group(1))
                  username, password = auth_str.split(':', 1)
  
          return username, password
docs: return the username and password of a basic auth header if it exists